home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / make-3.69 / changelo < prev    next >
Encoding:
Text File  |  1993-11-07  |  267.9 KB  |  7,361 lines

  1. Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2.  
  3.     * Version 3.69.
  4.  
  5. Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  6.  
  7.     * Version 3.68.10.
  8.  
  9.     * implicit.c (try_implicit_rule): Look for a normal rule before an
  10.     archive rule.
  11.  
  12. Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  13.  
  14.     * function.c (expand_function: `sort'): Double NWORDS when it
  15.     overflows, instead of adding five.
  16.  
  17.     * compatMakefile (clean): Remove loadavg.
  18.  
  19. Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  20.  
  21.     * Version 3.68.9.
  22.  
  23.     * file.h (NEW_MTIME): Define new macro.
  24.     * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
  25.     current time returned from system.  Removed variable NOW.
  26.     * remake.c (notice_finished_file): Use NEW_MTIME in place of
  27.     current time here too.
  28.  
  29. Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  30.  
  31.     * Version 3.68.8.
  32.  
  33.     * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
  34.     cmds and !DEPS_CHANGED unless also !NOEXIST.
  35.  
  36. Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  37.  
  38.     * read.c (parse_file_seq): When converting multi-word archive
  39.     refs, ignore a word beginning with a '('.
  40.  
  41. Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  42.  
  43.     * configure.in: Check for sys/timeb.h.
  44.     * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
  45.  
  46. Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  47.  
  48.     * Version 3.68.7.
  49.  
  50.     * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
  51.     TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
  52.     TARGNAME to initialize PERCENTS[0].
  53.  
  54. Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  55.  
  56.     * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
  57.     Remove AC_USG; it is no longer used.
  58.  
  59.     * file.c (print_file): New function, broken out of
  60.     print_file_data_base.
  61.     (print_file_data_base): Call it.
  62.     * rule.c (print_rule): New function, broken out of
  63.     print_rule_data_base.
  64.     (print_rule_data_base): Call it.
  65.  
  66. Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  67.  
  68.     * default.c (install_default_suffix_rules): New function, broken
  69.     out of install_default_implicit_rules.
  70.     (install_default_implicit_rules): Move suffix rule code there.
  71.     * make.h: Declare install_default_suffix_rules.
  72.     * main.c (main): Call install_default_suffix_rules before reading
  73.     makefiles.  Move convert_to_pattern call before
  74.     install_default_implicit_rules.
  75.  
  76.     * job.h (struct child): Make `pid' member type `pid_t' instead of
  77.     `int'.
  78.  
  79.     * compatMakefile (RANLIB): New variable, set by configure.
  80.     (glob/libglob.a): Pass RANLIB value down to submake.
  81.  
  82.     Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
  83.     * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
  84.     * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
  85.     defined but NOFILES_MAX is, define it to be that.
  86.  
  87. Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  88.  
  89.     * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
  90.     is distributed.
  91.  
  92. Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  93.  
  94.     * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
  95.  
  96. Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  97.  
  98.     * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
  99.     is another symbol for | in some shells.
  100.     * main.c (main): Add it to CMD_DEFS quoting list as well.
  101.  
  102. Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  103.  
  104.     * job.c (construct_command_argv_internal): Remove '=' from
  105.     SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
  106.     first word without an unquoted '='.
  107.  
  108.     * main.c (define_makeflags): Set v_export for MAKEFLAGS.
  109.  
  110. Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  111.  
  112.     * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
  113.  
  114.     * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
  115.  
  116.     * commands.c (delete_child_targets): Don't delete phony files.
  117.  
  118.     * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
  119.     see a `+' at the beginning of the command line.
  120.  
  121. Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  122.  
  123.     * Version 3.68.6.
  124.  
  125. Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  126.  
  127.     * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
  128.  
  129. Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  130.  
  131.     * expand.c (variable_expand): Fatal on an unterminated reference.
  132.  
  133. Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  134.  
  135.     * Version 3.68.5.
  136.  
  137.     * variable.c (define_automatic_variables): Define new o_default
  138.     variable `MAKE_VERSION' from version_string and remote_description.
  139.  
  140.     * make.h (version_string, remote_description): Declare these here.
  141.     * main.c: Don't declare version_string.
  142.     (print_version): Don't declare remote_description.
  143.  
  144. Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  145.  
  146.     * read.c (read_makefile): Free space pointed to by CONDITIONALS
  147.     before restoring the old pointer.
  148.  
  149. Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  150.  
  151.     * compatMakefile ($(objs)): Depend on config.h.
  152.  
  153.     * GNUmakefile (build.sh.in): Depend on compatMakefile.
  154.  
  155.     * configure.in: Touch stamp-config after AC_OUTPUT.
  156.  
  157. Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  158.  
  159.     * Version 3.68.4.
  160.  
  161. Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  162.  
  163.     * make.h: Include <config.h> instead of "config.h".
  164.  
  165. Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  166.  
  167.     * main.c (main): Make all variables interned from ENVP be v_export.
  168.     * variable.c (try_variable_definition): In v_default case, don't
  169.     check for an o_file variable that `getenv' finds.
  170.  
  171.     * job.c (reap_children): New local variable ANY_LOCAL; set it
  172.     while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
  173.  
  174.     * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
  175.  
  176.     * function.c (expand_function): #if 0 out freeing of ENVP since it
  177.     is environ.
  178.  
  179. Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  180.  
  181.     * Version 3.68.3.
  182.  
  183.     * remote-stub.c (remote_status): Set errno to ECHILD before return.
  184.     * job.c (reap_children): Scan the chain for remote children and
  185.     never call remote_status if there are none.
  186.  
  187.     * function.c (expand_function: `shell'): #if 0 out calling
  188.     target_environment; just set ENVP to environ instead.
  189.  
  190.     * job.c (reap_children): Check for negative return from
  191.     remote_status and fatal for it.
  192.     When blocking local child wait returns 0, then try a blocking call
  193.     to remote_status.
  194.  
  195. Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  196.  
  197.     * compatMakefile (clean): Delete make.info* and make.dvi here.
  198.     (distclean): Not here.
  199.  
  200.     * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
  201.     compilers that don't like enum values used as ints.
  202.  
  203. Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  204.  
  205.     * compatMakefile (loadavg): Add $(LOADLIBES).
  206.  
  207. Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  208.  
  209.     * Version 3.68.2.
  210.  
  211.     * compatMakefile (loadavg, check-loadavg): New targets.
  212.     (check): Depend on check-loadavg.
  213.  
  214.     * compatMakefile (glob/libglob.a): Depend on config.h.
  215.  
  216.     * misc.c (log_access): Write to stderr instead of stdout.
  217.  
  218. Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  219.  
  220.     * Version 3.68.1.
  221.  
  222. Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  223.  
  224.     * configure.in (SYS_SIGLIST_DECLARED): In test program include
  225.     <unistd.h> #ifdef HAVE_UNISTD_H.
  226.  
  227.     * compatMakefile (.PHONY): Put after `all' et al.
  228.  
  229.     * configure.in: Add AC_IRIX_SUN.
  230.  
  231. Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  232.  
  233.     * Version 3.68.
  234.  
  235. Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  236.  
  237.     * Version 3.67.8.
  238.  
  239. Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  240.  
  241.     * Version 3.67.7.
  242.  
  243.     * compatMakefile ($(infodir)/make.info): Don't use $(instname).
  244.     Run install-info script if present.
  245.  
  246. Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  247.  
  248.     * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
  249.  
  250.     * configure.in: Add AC_STAT_MACROS_BROKEN.
  251.  
  252. Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  253.  
  254.     * Version 3.67.6.
  255.  
  256.     * read.c (read_makefile): Recognize directive `-include', like
  257.     `include' but sets RM_DONTCARE flag.
  258.  
  259.     * variable.c (target_environment): If FILE is nil, use
  260.     current_variable_set_list in place of FILE->variables.
  261.     * function.c (expand_function: `shell'): Get an environment for
  262.     the child from target_environment instead of using environ.
  263.  
  264.     * dep.h: Declare read_all_makefiles here.
  265.     (RM_*): Define new enum constants.
  266.     * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
  267.     Treat it as a bit mask containing RM_*.
  268.     (read_all_makefiles): For default makefiles, set D->changed to
  269.     RM_DONTCARE instead of 1.
  270.     * main.c: Don't declare read_all_makefiles here.
  271.     (main): Check `changed' member of read_makefiles elts for RM_*
  272.     flags instead of specific integer values.
  273.  
  274. Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  275.  
  276.     * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
  277.  
  278. Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  279.  
  280.     * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
  281.     as well as VPATH.
  282.     (build_vpath_lists): Empty `vpaths' around construct_vpath_list
  283.     call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
  284.  
  285.     * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
  286.     PERCENTS, whose storage is not consumed by create_pattern_rule.
  287.  
  288.     * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
  289.  
  290. Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  291.  
  292.     * Version 3.67.5.
  293.  
  294.     * rule.c (max_pattern_targets): New variable.
  295.     (count_implicit_rule_limits): Compute its value.
  296.     * rule.h: Declare it.
  297.     * implicit.c (pattern_search): Make TRYRULES max_target_patterns
  298.     times bigger.  Move adding new TRYRULES elt inside the inner
  299.     targets loop, so each matching target gets its own elt in MATCHES
  300.     and CHECKED_LASTSLASH.
  301.  
  302.     * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
  303.     instead of just `file' in error msg.
  304.  
  305. Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  306.  
  307.     * job.c (construct_command_argv): Turn off
  308.     --warn-undefined-variables around expansion of SHELL and IFS.
  309.     * read.c (tilde_expand): Likewise for HOME.
  310.     (read_all_makefiles): Likewise for MAKEFILES.
  311.     * vpath.c (build_vpath_lists): Likewise for VPATH.
  312.  
  313.     * main.c (warn_undefined_variables_flag): New flag variable.
  314.     (switches): Add --warn-undefined-variables.
  315.     * make.h (warn_undefined_variables_flag): Declare it.
  316.     * expand.c (warn_undefined): New function.
  317.     (reference_variable): Call it if the variable is undefined.
  318.     (variable_expand): In substitution ref, call warn_undefined if the
  319.     variable is undefined.
  320.  
  321.     * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
  322.     `%.tex: %.w %.ch' rules.
  323.     (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
  324.     (default_suffixes): Add `.ch'.
  325.  
  326. Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  327.  
  328.     * default.c (default_suffixes): Replace `.cweb' with `.w'.
  329.     (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
  330.     and `.w.tex'.
  331.  
  332. Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  333.  
  334.     * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
  335.  
  336. Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  337.  
  338.     * Version 3.67.4.
  339.  
  340.     * read.c (multi_glob): Don't free OLD and OLD->name in the
  341.     FOUND!=0 fork.  Use new block-local variable F instead of
  342.     clobbering OLD.
  343.  
  344.     * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
  345.     (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
  346.     contains no metacharacters.
  347.  
  348. Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  349.  
  350.     * ar.c (ar_glob{_match,_alphacompare}): New function.
  351.  
  352.     * dep.h [! NO_ARCHIVES]: Declare it.
  353.     * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
  354.  
  355.     * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
  356.     multi_glob (which doesn't take a 3rd arg).
  357.     * rule.c (install_pattern_rule): Likewise.
  358.     * default.c (set_default_suffixes): Here too.
  359.     * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
  360.  
  361.     * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
  362.     loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
  363.  
  364. Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  365.  
  366.     * compatMakefile (installdirs): Actually pass directory names.
  367.     ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
  368.     if it fails, echo a warning msg, but don't make the rule fail.
  369.  
  370.     * read.c (tilde_expand): New function, broken out of tilde_expand.
  371.     (multi_glob): Call it.
  372.     (construct_include_path): Expand ~ in directory names.
  373.     * dep.h: Declare tilde_expand.
  374.     * main.c (enter_command_line_file): Expand ~ at the start of NAME.
  375.     (main): Expand ~ in -C args.
  376.     * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
  377.  
  378. Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  379.  
  380.     * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
  381.  
  382.     * main.c (main): Put result of alloca in temporary variable with
  383.     simple assignment, to make SGI compiler happy.
  384.  
  385. Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  386.  
  387.     * Version 3.67.3.
  388.  
  389.     * main.c (main): Before re-execing, remove intermediate files, and
  390.     print the data base under -p.  Sexier debugging message.
  391.  
  392.     * implicit.c (pattern_search): Allocate an extra copy of the name
  393.     of a winning intermediate file when putting it in FOUND_FILES.
  394.  
  395. Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  396.  
  397.     * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
  398.     multi_glob (which doesn't take a 3rd arg).
  399.  
  400.     * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
  401.     chars within D_NAMLEN that are NULs.
  402.  
  403.     * main.c (decode_switches): Don't savestring ARGV[0] to put it
  404.     into `other_args'.
  405.     For string switch, don't savestring `optarg'.
  406.     (main): Don't free elts of makefiles->list that are "-".
  407.     Use alloca'd rather than savestring'd storage for elts of
  408.     makefiles->list that are temporary file names.
  409.     * read.c (read_all_makefiles): Don't free *MAKEFILES.
  410.     * file.c (enter_file): Don't strip `./'s.
  411.     * main.c (enter_command_line_file): New function.
  412.     (main): Use it in place of enter_file for command-line goals from
  413.     other_files, and for old_files and new_files.
  414.  
  415. Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  416.  
  417.     * Version 3.67.2.
  418.  
  419.     * compatMakefile (.SUFFIXES): Add .info.
  420.     ($(infodir)/$(instname).info): Find make.info* in cwd if there,
  421.     else in $srcdir.  Use basename to remove dir name from installed name.
  422.  
  423. Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  424.  
  425.     * implicit.c (pattern_search): When interning FOUND_FILES, try
  426.     lookup_file first; if found, free the storage for our copy of the name.
  427.  
  428. Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  429.  
  430.     * Version 3.67.1.
  431.  
  432.     * main.c (decode_switches): In usage msg, write `--switch=ARG' or
  433.     `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
  434.  
  435. Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  436.  
  437.     * rule.c (convert_suffix_rule): New function.
  438.     (convert_to_pattern): Use it instead of doing all the work here
  439.     several times.
  440.     For target suffix `.a', generate both the archive magic rule and
  441.     the normal rule.
  442.  
  443.     * compatMakefile (distclean): Remove stamp-config.
  444.  
  445. Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  446.  
  447.     * Version 3.67.
  448.  
  449.     * file.c (remove_intermediates): Don't write extra space after `rm'.
  450.  
  451.     * main.c (struct command_switch.type): Remove `usage_and_exit'.
  452.     (print_usage_flag): New variable.
  453.     (switches: --help): Make type `flag', to set print_usage_flag.
  454.     (init_switches): Remove `usage_and_exit' case.
  455.     (decode_switches): Likewise.
  456.     (decode_switches): Print usage if print_usage_flag is set.
  457.     When printing usage, die with status of BAD.
  458.     (main): Die with 0 if print_version_flag.
  459.  
  460. Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  461.  
  462.     * Version 3.66.
  463.  
  464. Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  465.  
  466.     * compatMakefile (installdirs): New target.
  467.     (install): Depend on it.
  468.  
  469. Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  470.  
  471.     * Version 3.65.2.
  472.  
  473. Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  474.  
  475.     * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
  476.     set LASTPATH to PATH, not NEXT.
  477.  
  478.     * dir.c (read_dirstream): Break out of loop after incrementing
  479.     DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
  480.     dereference DS->contents->files[DIRFILE_BUCKETS].
  481.  
  482.     * read.c (read_makefile): Clear no_targets after reading a
  483.     targetful rule line.
  484.  
  485.     * main.c (main): If print_version_flag is set, exit after printing
  486.     the version.
  487.     (switches): Change --version docstring to say it exits.
  488.  
  489.     * make.h [butterfly]: #undef POSIX.
  490.  
  491. Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  492.  
  493.     * Version 3.65.1.
  494.  
  495.     * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
  496.     [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
  497.  
  498.     * function.c (handle_function): Use fatal instead of
  499.     makefile_fatal when reading_filename is nil.
  500.  
  501.     * configure.in: Add AC_GETGROUPS_T.
  502.     * job.c (search_path): Use GETGROUPS_T in place of gid_t.
  503.  
  504. Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  505.  
  506.     * Version 3.65.
  507.  
  508. Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  509.  
  510.     * function.c (handle_function): Fatal for unmatched paren.
  511.  
  512. Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  513.  
  514.     * Version 3.64.3.
  515.  
  516.     * commands.c (handling_fatal_signal): New variable.
  517.     (fatal_error_signal): Set it.
  518.     * job.c (reap_children): Avoid nonreentrant operations if that is set.
  519.     * make.h: Declare handling_fatal_signal.
  520.  
  521.     * expand.c (reference_variable): New function, snippet of code
  522.     broken out of simple-reference case of variable_expand.
  523.     (variable_expand): Use it for simple refs.
  524.     (variable_expand): When checking for a computed variable name,
  525.     notice a colon that comes before the final CLOSEPAREN.  Expand
  526.     only up to the colon, and then replace the pending text with a
  527.     copy containing the expanded name and fall through to subst ref
  528.     handling.
  529.     (variable_expand): Don't bother expanding the name if a colon
  530.     appears before the first $.
  531.     (expand_argument): Use alloca instead of savestring.
  532.     (variable_expand): For subst ref, expand both sides of = before
  533.     passing to [pat]subst_expand.  Use find_percent instead of lindex
  534.     to check the lhs for a %.
  535.  
  536. Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  537.  
  538.     * Version 3.64.2.
  539.  
  540. Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  541.  
  542.     * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
  543.  
  544.     * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
  545.     not to multi_glob.
  546.  
  547. Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  548.  
  549.     * Version 3.64.1.
  550.  
  551.     * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
  552.     we read the member name in any of the fashions that allow it to be
  553.     arbitrarily long.  Pass its negation to FUNCTION.
  554.     (describe_member): Take TRUNCATED from ar_scan and print it.
  555.     (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
  556.     the first sizeof (struct ar_hdr.ar_name) chars.
  557.     (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
  558.     * ar.c (ar_member_date_1): Likewise.
  559.  
  560. Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  561.  
  562.     * job.c (reap_children): Before calling start_job_command to start
  563.     the next command line, reset C->remote by calling start_remote_job_p.
  564.  
  565. Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  566.  
  567.     * arscan.c (ar_scan): New local var NAMEMAP.
  568.     In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
  569.     flag IS_NAMEMAP.  When extracting the member name, always put a
  570.     null at its end first.  If the name is "//" or "/ARFILENAMES", set
  571.     IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
  572.     like " /N", get full name from NAMEMAP+N.
  573.     Else if NAME looks like "#1/N", read N chars from the
  574.     elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
  575.     the elt's data into alloca'd NAMEMAP.
  576.     (ar_name_equal): #if 0 truncating code.
  577.  
  578.     * make.h: Don't declare vfork at all.  It returns int anyway,
  579.     unless <unistd.h> declared it; and we conflicted with some systems.
  580.  
  581.     * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
  582.     MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
  583.     define it to something like "-no-print-directory".
  584.     Use %g format instead of %f for floating-valued things.
  585.  
  586. Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  587.  
  588.     * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
  589.     to change remote-%.dep to remote-stub.dep.
  590.  
  591. Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  592.  
  593.     * Version 3.64.
  594.  
  595. Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  596.  
  597.     * compatMakefile (install): Remove - prefix from chgrp+chmod.
  598.  
  599.     * Version 3.63.8.
  600.  
  601. Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  602.  
  603.     * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
  604.     * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
  605.     else to "get".
  606.     * default.c (default_variables): Set GET to macro SCCS_GET.
  607.  
  608.     * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
  609.     if nonzero.  I hope this is the last time this argument is added
  610.     or removed.
  611.     (read_makefile): Pass it 1 when parsing include file names.
  612.     Pass it 1 when parsing target file names.
  613.     Pass it 1 when parsing static pattern target pattern names.
  614.     * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
  615.     * default.c (set_default_suffixes): Pass it 1 when parsing
  616.     default_suffixes.
  617.     * function.c (string_glob): Pass it 0 here.
  618.  
  619. Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  620.  
  621.     * misc.c (log_access): New function.
  622.     ({init,user,make,child}_access): Call it.
  623.     (child_access): Abort if !access_inited.
  624.  
  625.     * main.c (switches: --no-print-directory): Use 1 instead of -1 for
  626.     single-letter option.
  627.     (init_switches, decode_switches, define_makeflags): An option with
  628.     no single-letter version is no longer indicated by a value of -1;
  629.     instead a value that is !isalnum.
  630.     (init_switches): Don't put such switches into the string, only
  631.     into the long_option table.
  632.  
  633.     * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
  634.  
  635.     * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
  636.     bsdcc defined WIF* to use union wait.
  637.  
  638.     * main.c (struct command_switch): Change member `c' to type int.
  639.     (switches): Make const.
  640.     (decode_switches): Use `const struct command_switch *'.
  641.     (define_makeflags): Likewise.
  642.  
  643.     * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
  644.  
  645. Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  646.  
  647.     * Version 3.63.7.
  648.  
  649.     * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
  650.     Removed AC_MEMORY_H.
  651.     * make.h [USG, NeXT]: Don't test these.
  652.     [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
  653.     [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
  654.     [! ANSI_STRING]: Put decls of bcopy et al here.
  655.     [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
  656.     [HAVE_SIGSETMASK]: Test this rather than USG.
  657.     [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
  658.     * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
  659.     It doesn't hurt to do both if they are both defined, and testing
  660.     USG is useless.
  661.     * dir.c: Rationalize directory header conditionals.
  662.     * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
  663.  
  664.     * default.c (default_suffixes): Add `.txinfo'.
  665.     (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
  666.  
  667.     * variable.c (try_variable_definition): Replace RECURSIVE flag
  668.     with enum FLAVOR, which can be simple, recursive, or append.
  669.     Recognize += as append flavor.  Set new variable VALUE in a switch
  670.     on FLAVOR.  For append flavor, prepend the variable's old value.
  671.     If the variable was previously defined recursive, set FLAVOR to
  672.     recursive; if it was defined simple, expand the new value before
  673.     appending it to the old value.  Pass RECURSIVE flag to
  674.     define_variable iff FLAVOR == recursive.
  675.  
  676.     * variable.c (try_variable_definition): Use alloca and bcopy for
  677.     NAME, instead of savestring.  Might as well use stack storage
  678.     since we free it immediately anyway.
  679.  
  680. Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  681.  
  682.     * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
  683.  
  684.     * main.c (define_makeflags): Rename `struct flag' member `switch'
  685.     to `cs', which is not a reserved word.
  686.  
  687. Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  688.  
  689.     * job.c (new_job): Call start_waiting_jobs first thing.
  690.     (start_waiting_job): Changed return type from void to int.
  691.     Return 0 when putting the child on the waiting_jobs chain.
  692.     (start_waiting_jobs): Don't check load and job_slots here.
  693.     Always take a job off the chain and call start_waiting_job on it;
  694.     give up and return when start_waiting_job returns zero.
  695.  
  696.     * main.c (define_makeflags: struct flag): Change member `char c' to
  697.     `struct command_switch *switch'.
  698.     (ADD_FLAG): Set that to CS instead of CS->c.
  699.     If CS->c is -1, increment FLAGSLEN for the long name.
  700.     When writing out FLAGS, handle FLAGS->switch->c == -1 and write
  701.     the long name instead.
  702.  
  703.     * compatMakefile (stamp-config): New target of old config.h rule.
  704.     Touch stamp-config after running config.status.
  705.     (config.h): Just depend on stamp-config, and have empty commands.
  706.  
  707. Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  708.  
  709.     * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
  710.  
  711.     * configure.in (AC_HAVE_FUNCS): Check for psignal.
  712.  
  713. Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  714.  
  715.     * main.c (long_option_aliases): Remove "new"; it is already an
  716.     unambiguous prefix of "new-file".
  717.  
  718. Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  719.  
  720.     * Version 3.63.6.
  721.  
  722. Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  723.  
  724.     * vpath.c (selective_vpath_search): When adding the
  725.     name-within-directory at the end of NAME, and we don't add a
  726.     slash, don't copy FILENAME in one char too far into NAME.
  727.  
  728.     * variable.c (define_automatic_variables): Find default_shell's
  729.     length with strlen, not numerology.
  730.  
  731. Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  732.  
  733.     * main.c (define_makeflags): Add the elts of a string option in
  734.     reverse order, so they come out right when reversed again.
  735.  
  736. Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  737.  
  738.     * compatMakefile (make.info): Use `-o make.info'.
  739.  
  740. Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  741.  
  742.     * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
  743.     reflect new use.
  744.     (objs): Replace remote.o with remote-$(REMOTE).o.
  745.     (srcs): Replace remote.c with remote-$(REMOTE).c.
  746.     (remote.o): Rule removed.
  747.  
  748.     * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
  749.     Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
  750.     * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
  751.     * build.template (REMOTE): New var; set to @REMOTE@.
  752.     (objs): Add remote-${REMOTE}.o.
  753.  
  754. Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  755.  
  756.     * Version 3.63.5.
  757.  
  758.     * implicit.c (pattern_search): Fix "dependent"->"dependency" in
  759.     "Rejecting impossible" -d msg.
  760.  
  761.     * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
  762.     mod'd values there; never mod {OLD,NEW}HASH.
  763.  
  764. Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  765.  
  766.     * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
  767.  
  768.     * compatMakefile (VPATH): Set this to @srcdir@.
  769.     (srcdir): Set this to $(VPATH).
  770.  
  771.     * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
  772.     a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
  773.     instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
  774.  
  775.     * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
  776.  
  777.     * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
  778.  
  779. Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  780.  
  781.     * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
  782.     as the sed delimiter char.
  783.  
  784. Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  785.  
  786.     * Version 3.63.4.
  787.  
  788.     * rule.h (struct rule): Removed `subdir' member.
  789.     * rule.c (new_pattern_rule): No need to clear it.
  790.     (count_implicit_rule_limits): Set the `changed' flag in each dep
  791.     that refers to a nonexistent directory.  No longer set rule-global
  792.     `subdir' flag with that information.
  793.     (print_rule_data_base): Don't record info on `subdir' flags.
  794.  
  795.     * implicit.c (pattern_search): Check the DEP->changed flag rather
  796.     than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
  797.     if it is set, the file might exist even though the DEP->changed
  798.     flag is set.
  799.  
  800.     * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
  801.     name arg to dir_file_exists_p to check for existence of directory.
  802.  
  803.     * implicit.c (pattern_search): Inside dep-finding loop, set
  804.     CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
  805.     rather than computing it anew.
  806.  
  807.     * commands.c (set_file_variables): Must alloca space for PERCENT
  808.     and copy it, to avoid leaving the trailing `)' in the value.
  809.  
  810.     * misc.c (remove_comments): Fixed backslash-checking loop
  811.     condition to allow it to look at the first char on the line.
  812.     P2 >= LINE, not P2 > LINE.
  813.  
  814.     * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
  815.     $@, rm $@.old and mv $@ to $@.old.
  816.  
  817.     * variable.c (try_variable_definition): Take new args FILENAME and
  818.     LINENO.  Fatal if the variable name is empty.
  819.     * read.c (read_makefile): Change callers.
  820.     * main.c (main): Likewise.
  821.  
  822.     * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
  823.     that configure will replace with the group owning /dev/kmem.
  824.  
  825. Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  826.  
  827.     * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
  828.     selective_vpath_search.
  829.     (selective_vpath_search): Take second arg MTIME_PTR.
  830.     If the dir cache thinks a file exists, stat it to make sure, and
  831.     put the modtime in *MTIME_PTR.
  832.     * remake.c (library_search): Take second arg MTIME_PTR.
  833.     When we find a match, record its mtime there.
  834.     Pass MTIME_PTR through to vpath_search to do same.
  835.     (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
  836.     store it in FILE->last_mtime if set nonzero.
  837.     * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
  838.  
  839.     * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
  840.     so globbing looks somewhere it will find things.
  841.  
  842.     * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
  843.     not `$(srcdir)/make.info*'; no need to use basename.
  844.  
  845. Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  846.  
  847.     * Version 3.63.3.
  848.  
  849.     * compatMakefile (install): Add missing ;\s.
  850.  
  851.     Make -, @, and + prefixes on a pre-expanded command line affect
  852.     all lines in the expansion, not just the first.
  853.     * commands.h (struct commands): Replace `lines_recurse' member
  854.     with `lines_flags'.
  855.     (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
  856.     that flag byte.
  857.     * commands.c (chop_commands): Set `lines_flags' instead of
  858.     `lines_recurse'.  Record not only + but also @ and - prefixes.
  859.     * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
  860.     in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
  861.     * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
  862.     var with FLAGS; initialize it to the appropriate `lines_flags' byte.
  863.     Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
  864.     Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
  865.  
  866.     * remake.c (update_goal_chain): Set G->file to its prev after
  867.     checking for G being finished, since that check needs to examine
  868.     G->file.
  869.  
  870.     * configure.in (union wait check) [HAVE_WAITPID]: Try using
  871.     waitpid with a `union wait' STATUS arg.  If waitpid and union wait
  872.     don't work together, we should not use union wait.
  873.  
  874.     * Version 3.63.2.
  875.  
  876.     * remake.c (update_goal_chain): When G->file->updated, move
  877.     G->file to its prev.  We aren't finished until G->file is nil.
  878.  
  879. Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  880.  
  881.     * main.c (starting_directory): New global variable.
  882.     (main): Set it to cwd after doing -Cs.
  883.     (log_working_directory): Use it, rather than computing each time.
  884.     * make.h: Declare it.
  885.  
  886.     * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
  887.  
  888.     * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
  889.     ARGV, rather than LEN words plus one byte.
  890.  
  891. Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  892.  
  893.     * compatMakefile ($(bindir)/$(instname)): Put - before
  894.     install_setgid command line, so its failure won't be an error.
  895.     (infodir): New variable.
  896.     (install): Depend on $(infodir)/$(instname).info.
  897.     ($(infodir)/$(instname).info): New target.
  898.  
  899.     * read.c (read_makefile): If FILENAMES is nil when we see a line
  900.     starting with a tab, don't treat it as a command.  Just fall
  901.     through, rather than giving an error.
  902.  
  903.     * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
  904.     command line, don't clear it before continuing.  We want
  905.     subsequent command lines to be ignored as well.
  906.  
  907.     * job.c (new_job): Before expanding each command line, collapse
  908.     backslash-newline combinations that are inside var or fn references.
  909.  
  910. Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  911.  
  912.     * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
  913.  
  914.     * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
  915.  
  916.     * job.c [POSIX] (unblock_sigs): Made global.
  917.     [!POSIX] (unblock_sigs): Move defns to job.h.
  918.     * job.h [POSIX] (unblock_sigs): Declare.
  919.  
  920. Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  921.  
  922.     * read.c (read_makefile): In vpath parsing, after finding the
  923.     pattern token, take entire rest of line as the search path, not
  924.     just the next token.
  925.  
  926.     * compatMakefile (remote.o): Depend on remote-*.c.
  927.  
  928. Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  929.  
  930.     * commands.c (set_file_variables): Don't define any F or D versions.
  931.     * variable.c (define_automatic_variables): Define them here as
  932.     recursively-expanded variables that use the dir and notdir funcs.
  933.  
  934.     * variable.c (target_environment): In v_default case, don't export
  935.     o_default or o_automatic variables.
  936.  
  937.     * configure.in (union wait check): Remove ` and ' inside C code;
  938.     they confuse the shell script.
  939.  
  940. Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  941.  
  942.     * Version 3.63.1.
  943.  
  944.     * vpath.c (construct_vpath_list): When skipping further processing
  945.     of an elt that is ".", don't also skip the code that pushes P past
  946.     the next separator.
  947.  
  948.     * compatMakefile (distclean): Don't remove make-*.
  949.  
  950.     * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
  951.     defined.  If one cannot use WEXITSTATUS with a `union wait'
  952.     argument, we don't want to believe the system has `union wait' at all.
  953.  
  954.     * remake.c (update_file): Do nothing to print "up to date" msgs.
  955.     (update_goal_chain): Do it here instead.
  956.     Use the `changed' flag of each goal's `struct dep' to keep track
  957.     of whether files_remade (now commands_started) changed around a
  958.     call to update_file for that goal.
  959.     When a goal is finished, and its file's update_status is zero (i.e.,
  960.     success or nothing done), test the `changed' flag and give an "up
  961.     to date" msg iff it is clear.
  962.     * make.h (files_remade): Renamed to commands_started.
  963.     * remake.c: Changed defn.
  964.     (update_goal_chain): Changed uses.
  965.     * job.c (start_job_command): Increment commands_started here.
  966.     (reap_children): Not here.
  967.  
  968.     * remake.c (update_goal_chain): Don't do anything with files'
  969.     `prev' members.  update_file now completely handles this.
  970.  
  971.     * variable.c (target_environment): Don't expand recursive
  972.     variables if they came from the environment.
  973.  
  974.     * main.c (define_makeflags): For flags with omitted optional args,
  975.     store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
  976.     so stored cannot have more flags appended to the same word.
  977.  
  978. Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  979.  
  980.     * variable.c (print_variable_set): In vars/bucket calculation,
  981.     don't spuriously multiply by 100.
  982.  
  983.     * Version 3.63.
  984.  
  985.     * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
  986.     Don't define if already defined.
  987.  
  988.     * remake.c (update_file): Don't keep track of the command_state before
  989.     calling update_file_1.  Remove local variable COMMANDS_FINISHED,
  990.     and don't test it to decide to print the "is up to date" msg.
  991.     Testing for files_remade having changed should always be sufficient.
  992.     The old method lost when we are called in the goal chain run on a
  993.     makefile, because the makefile's command_state is already
  994.     `cs_finished' from the makefile chain run.
  995.  
  996.     * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
  997.  
  998.     * configure.in: Rewrote wait checking.
  999.     Use AC_HAVE_HEADERS to check for <sys/wait.h>.
  1000.     Use AC_HAVE_FUNCS to check for waitpid and wait3.
  1001.     Use a compile check to test just for `union wait'.
  1002.     * job.c: Rewrote conditionals accordingly.
  1003.     [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
  1004.     [HAVE_WAIT3]: Likewise.
  1005.     [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
  1006.  
  1007.     * configure.in: Set CFLAGS and LDFLAGS before all checks.
  1008.  
  1009.     * dir.c: Add static forward decls of {open,read}_dirstream.
  1010.  
  1011. Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1012.  
  1013.     * Version 3.62.31.
  1014.  
  1015.     * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
  1016.  
  1017.     * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
  1018.     * build.template (CFLAGS, LDFLAGS): Same here.
  1019.     * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
  1020.     Set them to -g if not defined in the environment.
  1021.  
  1022.     * remake.c (library_search): Use LIBNAME consistently, setting it
  1023.     only once, to be the passed name sans `-l'.
  1024.     Pass new var FILE to be modified by vpath_search.
  1025.  
  1026. Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1027.  
  1028.     * Version 3.62.30.
  1029.  
  1030.     * job.c (start_waiting_jobs): Return when job_slots_used is equal to
  1031.     job_slots. 
  1032.  
  1033.     * configure.in: Add AC_CONST for the sake of getopt.
  1034.  
  1035.     * read.c (read_makefile): Continue after parsing `override'
  1036.     directive, rather than falling through to lossage.
  1037.     Check for EOL or blank after "override define".
  1038.  
  1039.     * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
  1040.  
  1041. Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1042.  
  1043.     * Version 3.62.29.
  1044.  
  1045.     * main.c (define_makeflags): After writing everything into
  1046.     FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
  1047.     just wrote " -".  Always terminate the string at *P.
  1048.  
  1049.     * remake.c (library_search): When constructing names in std dirs,
  1050.     use &(*LIB)[2] for the stem, not LIBNAME (which points at the
  1051.     buffer we are writing into!).
  1052.  
  1053. Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1054.  
  1055.     * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
  1056.     define" when IGNORING is true.
  1057.  
  1058.     * compatMakefile (distclean): Remove config.status and build.sh.
  1059.  
  1060. Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1061.  
  1062.     * Version 3.62.28.
  1063.  
  1064.     * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
  1065.     (char *).
  1066.  
  1067.     * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
  1068.  
  1069.     * variable.c (define_automatic_variables): Override SHELL value for
  1070.     origin o_env_override as well as o_env.
  1071.  
  1072.     * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
  1073.     add the names of the glob objects (w/subdir) to %objs%.
  1074.     * build.template (globobjs): Removed.
  1075.     Take basename of $objs before linking.
  1076.  
  1077. Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1078.  
  1079.     * Version 3.62.27.
  1080.  
  1081.     * configure.in (AC_OUTPUT): Also edit build.sh.
  1082.     * build.template: New file.
  1083.     * GNUmakefile (build.sh.in): New rule to create it from build.template.
  1084.     (make-$(version).tar.Z): Depend on build.sh.in.
  1085.  
  1086.     * main.c (die): Call print_data_base if -p.
  1087.     (main): Don't call it here.
  1088.  
  1089.     * compatMakefile (defines): Add @DEFS@.  configure should turn this
  1090.     into -DHAVE_CONFIG_H.
  1091.  
  1092. Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1093.  
  1094.     * Version 3.62.26.
  1095.  
  1096.     * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
  1097.     ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
  1098.     * compatMakefile (install_setgid): New var, set by configure.
  1099.     (install): Install setgid $(group) only if $(install_setgid) is true.
  1100.  
  1101. Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1102.  
  1103.     * job.c (load_too_high): If getloadavg fails with errno==0, give a
  1104.     message saying that load limits are not supported.
  1105.  
  1106.     * vpath.c (construct_vpath_list): Rewrote path deletion code to
  1107.     not try to use PATH's next link after freeing PATH.
  1108.  
  1109.     * main.c (define_makeflags): Rewritten; now handles string-valued
  1110.     option, and has no arbitrary limits.
  1111.     (switches): Set `toenv' flag for -I and -v.
  1112.  
  1113.     * main.c (decode_env_switches): Cast return value of alloca to char *.
  1114.  
  1115.     * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
  1116.     setre[gu]id in place of set[gu]id.
  1117.  
  1118. Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1119.  
  1120.     * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
  1121.     origin o_default.
  1122.  
  1123.     * make.h [POSIX]: Don't test this to use ANSI_STRING.
  1124.     Testing STDC_HEADERS should be sufficient.
  1125.  
  1126.     * job.h: Declare start_waiting_jobs.
  1127.  
  1128.     * read.c (read_makefile): Add missing parens in if stmt that find
  1129.     conditional directives.
  1130.  
  1131.     * main.c (main): Declare init_dir.
  1132.     * implicit.c (pattern_search): Always use two % specs in a
  1133.     DEBUGP2, and always pass two non-nil args.
  1134.     Cast field width args to int.
  1135.     Add missing parens in !RULE->subdir if stmt.
  1136.     * function.c (expand_function, patsubst_expand): Add parens around
  1137.     assignments inside `while' stmts.
  1138.     * commands.c (print_commands): Cast field width args to int.
  1139.  
  1140.     * read.c (do_define): Cast return value of alloca to (char *).
  1141.  
  1142.     * main.c (init_switches): New function, broken out of decode_switches.
  1143.     (decode_switches): Take new arg ENV.  If set, ignore non-option
  1144.     args; print no error msgs; ignore options with clear `env' flags.
  1145.     (decode_env_switches): Rewritten to chop envar value into words
  1146.     and pass them to decode_switches.
  1147.     (switches): Set `env' flag for -I and -v.
  1148.  
  1149.     * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
  1150.  
  1151. Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1152.  
  1153.     * Version 3.62.25.
  1154.  
  1155.     * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
  1156.     <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
  1157.     we don't need these anyway.
  1158.  
  1159.     * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
  1160.     * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
  1161.     #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
  1162.     but its set[gu]id functions aren't; its setre[gu]id functions work.
  1163.  
  1164.     * misc.c ({user,make,child}_access): Give name of caller in error msgs.
  1165.  
  1166.     * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
  1167.  
  1168.     * configure.in: Call AC_PROG_CC.
  1169.     * compatMakefile (CC): Define to @CC@ (autoconf magic).
  1170.  
  1171.     * compatMakefile: Add .NOEXPORT magic target.
  1172.  
  1173. Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1174.  
  1175.     * main.c (print_version): Updated copyright to include 93.
  1176.  
  1177. Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1178.  
  1179.     * make.h [_AIX]: Don't declare alloca.
  1180.  
  1181. Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1182.  
  1183.     * Version 3.62.24.
  1184.  
  1185.     * compatMakefile (objs): Add signame.o.
  1186.     (srcs): Add signame.[ch].
  1187.  
  1188.     * compatMakefile (srcs): Add config.h.in.
  1189.     (remote.o): Add -I. before -I$(srcdir).
  1190.  
  1191. Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1192.  
  1193.     * Version 3.62.23.
  1194.  
  1195.     * read.c (readline): Fatal when LEN==0, indicating a line starting
  1196.     with a NUL.
  1197.     (readline): Take new arg LINENO, for use in error msg.
  1198.     (read_makefile, do_define): Pass it.
  1199.  
  1200.     * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
  1201.     (.c.o): Add -I. before -I$(srcdir).
  1202.  
  1203. Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1204.  
  1205.     * read.c (read_makefile): Accept and ignore a rule with no targets.
  1206.  
  1207.     * compatMakefile (ALLOCA_SRC): New variable.
  1208.     (srcs): Include its value.
  1209.  
  1210.     * read.c (struct conditional): Renamed member `max_ignoring' to
  1211.     `allocated'; added new member `seen_else'.
  1212.     (conditional_line): Initialize seen_else flag when starting an `if...';
  1213.     set it when we see an `else'; fatal if set when we see `else'.
  1214.     (read_makefile): Fatal "missing `endif'" if there are any pending
  1215.     conditionals, not just if we are still ignoring.
  1216.  
  1217. Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1218.  
  1219.     * compatMakefile (manext): Set to 1, not l.
  1220.     ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
  1221.  
  1222.     * file.c (file_hash_enter): Don't call uniquize_deps here.
  1223.     * read.c (record_files): Likewise.
  1224.     * implicit.c (pattern_search): Likewise.
  1225.     * commands.c (set_file_variables): Call it only here.
  1226.  
  1227.     * default.c (default_variables) [__convex__]: FC=fc.
  1228.  
  1229.     * variable.c (target_environment): Expand the values of recursively
  1230.     expanded variables when putting them into the environment.
  1231.     * expand.c (recursively_expand): Made global.
  1232.     * make.h (recursively_expand): Declare it.
  1233.  
  1234.     * remake.c (check_dep): Set FILE->command_state to cs_deps_running
  1235.     when a dep's command_state is cs_running or cs_deps_running.
  1236.  
  1237.     * read.c (read_makefile): Changed error msg for spurious cmds to
  1238.     not say "first target".
  1239.  
  1240. Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1241.  
  1242.     * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
  1243.     * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
  1244.     * compatMakefile (config.h, configure, config.h.in): New rules.
  1245.     (defines): Removed @DEFS@.
  1246.  
  1247. Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1248.  
  1249.     * compatMakefile (realclean): Just depend on distclean; no cmds.
  1250.     (distclean): Do what realclean did before; also remove Makefile and
  1251.     config.h; don't remove configure.
  1252.     (info, dvi): New targets; depend on make.{info,dvi}.
  1253.     (doc): Removed target.
  1254.     (MAKEINFO, TEXI2DVI): New vars.
  1255.     (make.info, make.dvi): Use them instead of explicit cmds.
  1256.  
  1257. Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1258.  
  1259.     * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
  1260.  
  1261. Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1262.  
  1263.     * main.c (long_option_aliases): Add --new-file alias for -W.
  1264.  
  1265.     * default.c (default_variables): Change all C++ to CXX and C++FLAGS
  1266.     to CXXFLAGS.
  1267.  
  1268.     * read.c (do_define): Expand the variable name before using it.
  1269.  
  1270.     * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
  1271.     define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
  1272.  
  1273.     * remake.c (library_search): Search for libNAME.a in cwd; look in
  1274.     vpath before looking in standard dirs, not after.
  1275.     Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
  1276.  
  1277. Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1278.  
  1279.     * default.c (default_pattern_rules, default_terminal_rules): Added
  1280.     brackets around initializers.
  1281.  
  1282.     * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
  1283.     (try_variable_definition): Expand the name before defining the var.
  1284.  
  1285.     * job.c (init_siglist): Removed function.
  1286.     Removed decl of `sys_siglist'.
  1287.     * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
  1288.     [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
  1289.     only under these conditions.
  1290.     * main.c (main): Don't declare init_siglist.
  1291.     (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
  1292.  
  1293. Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1294.  
  1295.     * read.c (record_files): Don't try to append to FIRSTDEPS if it's
  1296.     nil; instead just set it to MOREDEPS.
  1297.  
  1298. Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1299.  
  1300.     * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
  1301.     loop that sets MAXELEM.
  1302.  
  1303. Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1304.  
  1305.     * Version 3.62.22.
  1306.  
  1307. Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1308.  
  1309.     * job.c (start_job_command): Under -n, increment files_remade after
  1310.     processing (i.e., printing) all command lines.
  1311.  
  1312. Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1313.  
  1314.     * read.c (record_files): Append new deps if this rule has no
  1315.     commands; prepend them to existing deps if this rule has no commands.
  1316.  
  1317.     * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
  1318.  
  1319.     * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
  1320.     (read_makefile): Changed callers.
  1321.     * function.c (string_glob): Likewise.
  1322.     * rule.c (install_pattern_rule): Likewise.
  1323.  
  1324. Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1325.  
  1326.     * remake.c (files_remade): Made global.
  1327.     (notice_finished_file): Don't increment files_remade here; this
  1328.     function gets called in many situations where no remaking was in
  1329.     fact done.
  1330.     * job.c (reap_children): Do it here instead, when we know that 
  1331.     actual commands have been run for the file.
  1332.     * make.h (files_remade): Declare it.
  1333.  
  1334. Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1335.  
  1336.     * vpath.c (construct_vpath_list): Allow blanks as well as colons to
  1337.     separate elts in the search path.
  1338.  
  1339.     * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
  1340.     The search path can contain spaces now.
  1341.  
  1342. Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1343.  
  1344.     * compatMakefile (check): New target; no-op.
  1345.  
  1346.     * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
  1347.     testing for OLDHASH==0 but before using the value.
  1348.     (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
  1349.     to file_hash_enter.
  1350.  
  1351.     * file.c (rename_file): Notice when OLDFILE->cmds came from
  1352.     default.c, and don't try to print ->filename in that case.
  1353.  
  1354. Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1355.  
  1356.     * remake.c (update_file): Don't process F->also_make here.
  1357.     (notice_finished_file): Don't process FILE->also_make if no attempt
  1358.     to update FILE was actually made.
  1359.     Fixed to call f_mtime directly to refresh their modtimes.
  1360.  
  1361. Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1362.  
  1363.     * read.c (find_percent): Don't increment P again after skipping
  1364.     an escaped %.
  1365.  
  1366.     * expand.c (variable_expand): In call to patsubst_expand, don't
  1367.     find `%'s ourselves; let that function do it.
  1368.  
  1369.     * read.c (read_makefile: record_waiting_files): Don't call
  1370.     record_files if FILENAMES is nil.
  1371.     (read_makefile): All alternatives in the parsing, except for rule
  1372.     lines, fall through to the end of the loop.  At the end of the
  1373.     loop, do record_waiting_files so we notice later spurious cmds.
  1374.  
  1375. Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1376.  
  1377.     * variable.c (define_automatic_variables): Free old value of SHELL
  1378.     before replacing it.
  1379.  
  1380. Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1381.  
  1382.     * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
  1383.  
  1384.     * dir.c (open_dirstream): Cast return value to __ptr_t.
  1385.  
  1386.     * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
  1387.  
  1388.     * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
  1389.     (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
  1390.     Define as (get_path_max ()).
  1391.     [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
  1392.     [! PATH_MAX] (get_path_max): Declare fn.
  1393.     * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
  1394.  
  1395. Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1396.  
  1397.     * Version 3.62.21.
  1398.  
  1399.     * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
  1400.     * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
  1401.     SYS_SIGLIST_DECLARED.
  1402.  
  1403.     * dir.c (file_impossible): When initializing DIR->contents, set
  1404.     DIR->contents->dirstream to nil.
  1405.  
  1406.     * compatMakefile (GLOB): Define new variable.
  1407.     (objs): Use it, rather than glob/libglob.a explicitly.
  1408.  
  1409.     * read.c (parse_file_seq): When stripping "./", handle cases like
  1410.     ".///foo" and "./////".
  1411.     * file.c (lookup_file, enter_file): Likewise.
  1412.  
  1413. Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1414.  
  1415.     * dir.c (struct dirstream, {open,read}_dirstream): New
  1416.     data type and functions to read a directory sequentially.
  1417.     (init_dir): New function to hook it into glob.
  1418.     * main.c (main): Call init_dir.
  1419.  
  1420.     * compatMakefile (objs): Added glob/libglob.a.
  1421.     * configure.in: Remove code to test for glob.
  1422.  
  1423. Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1424.  
  1425.     * read.c (record_files): Generalized test for NAME pointing
  1426.     somewhere into F->name.
  1427.  
  1428.     * variable.c (define_variable_in_set): Free old value when replacing.
  1429.  
  1430.     * read.c (do_define): Free the linebuffer before returning.
  1431.     (record_files): When clearing .SUFFIXES deps, free their data.
  1432.     (multi_glob): Free OLD and its data when replacing it with results
  1433.     of glob run.
  1434.  
  1435.     * commands.c (set_file_variables): Use alloca in place of xmalloc
  1436.     for temp space for $^, $?, et al.
  1437.  
  1438.     * dir.c (struct directory): New member `contents' replaces `files'
  1439.     and `dirstream'.
  1440.     (struct directory_contents): New type.
  1441.     (directories_contents): New hash table.
  1442.     (dir_struct_file_exists_p): Take a struct directory_contents.
  1443.     (dir_file_exists_p): Pass it the `contents' member of the dir found.
  1444.     (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
  1445.     made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
  1446.     (dir_file_exists_p, find_directory): Change all callers.
  1447.     (file_impossible): Use DIR->contents, initializing it if nil.
  1448.     (print_dir_data_base): Use DIR->contents, and print out device and
  1449.     inode numbers with each directory.
  1450.  
  1451.     * Changes for performance win from John Gilmore <gnu@cygnus.com>:
  1452.     * dir.c (DIRECTORY_BUCKETS): Increase to 199.
  1453.     (DIRFILE_BUCKETS): Decrease to 107.
  1454.     (find_directory): Allocate and zero a multiple of
  1455.     sizeof (struct dirfile *), not of sizeof (struct dirfile).
  1456.     (dir_struct_file_exists_p): New function, nearly all code from
  1457.     dir_file_exists_p.
  1458.     (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
  1459.     * vpath.c (selective_vpath_search): Remove redundant
  1460.     dir_file_exists_p call.
  1461.  
  1462.     * configure.in: Comment out glob check; always use our code.
  1463.  
  1464. Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1465.  
  1466.     * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
  1467.     HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
  1468.     do have it.
  1469.  
  1470. Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1471.  
  1472.     * main.c (main): Don't do -w automatically if -s.
  1473.  
  1474. Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1475.  
  1476.     * main.c (printed_version): Move variable inside print_version.
  1477.     (print_version): Return immediately if printed_version is set.
  1478.     (die): Don't test printed_version here.
  1479.     (decode_switches): Under -v, do print_version before giving usage.
  1480.     (DESCRIPTION_COLUMN): New macro.
  1481.     (decode_switches): Use it when printing the usage message.
  1482.     Leave at least two spaces between options and their descriptions.
  1483.  
  1484. Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1485.  
  1486.     * Version 3.62.20.
  1487.  
  1488. Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1489.  
  1490.     * read.c (read_makefile): Save errno value from trying to open
  1491.     FILENAME, and restore it before erring; otherwise we get the errno
  1492.     value from the last elt of the search path.
  1493.  
  1494. Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1495.  
  1496.     * main.c (long_option_aliases): Add --stop for -S.
  1497.  
  1498.     * read.c (word1eq): Do strncmp before dereferencing someplace that
  1499.     may be out in space.
  1500.  
  1501. Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1502.  
  1503.     * remake.c (notice_finished_file): If all the command lines were
  1504.     recursive, don't do the touching.
  1505.  
  1506.     * job.c (start_job_command): Don't check for + here.
  1507.     * commands.c (chop_commands): Do it here instead.
  1508.  
  1509.     * default.c (default_terminal_rules): Prepend + to cmds for RCS.
  1510.  
  1511. Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1512.  
  1513.     * compatMakefile (objs): Include $(ALLOCA).
  1514.  
  1515.     * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
  1516.  
  1517. Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1518.  
  1519.     * read.c (default_include_directories): Add INCLUDEDIR first.
  1520.     * compatMakefile (includedir): Define.
  1521.     (defines): Add -D for INCLUDEDIR="$(includedir)".
  1522.  
  1523.     * read.c (read_makefile): Grok multiple files in `include';
  1524.     globbing too.
  1525.  
  1526.     * remake.c (library_search): New function.
  1527.     (library_file_mtime): Remove function.
  1528.     (f_mtime): Use library_search instead of library_file_mtime.
  1529.     * compatMakefile (libdir): Define.
  1530.     (defines): Add -D for LIBDIR="$(libdir)".
  1531.     * make.texinfo (Libraries/Search): Document change.
  1532.  
  1533.     * file.c (rename_file): Fix file_hash_enter call with missing arg.
  1534.  
  1535. Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1536.  
  1537.     * Version 3.62.19.
  1538.  
  1539.     * main.c (main): Set command_state to cs_finished for temp files
  1540.     made for stdin makefiles.
  1541.  
  1542.     * main.c (decode_switches): Don't tell getopt to return non-option
  1543.     args in order.
  1544.     Ignore an argument of `-'.
  1545.  
  1546. Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1547.  
  1548.     * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
  1549.     the command line and go to the next.
  1550.     (notice_finished_file): Under -t, touch FILE.
  1551.     * remake.c (remake_file): Don't touch it here.
  1552.  
  1553. Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1554.  
  1555.     * function.c (pattern_matches): Use temporary for strlen (WORD)
  1556.     instead of two function calls.
  1557.  
  1558.     * compatMakefile (LOAD_AVG): Remove variable and comments.
  1559.  
  1560. Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1561.  
  1562.     * make.texinfo (Running): Node renamed to `make Invocation'.
  1563.  
  1564. Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1565.  
  1566.     * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
  1567.     NAMELEN != MEMLEN.
  1568.  
  1569. Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1570.  
  1571.     * Version 3.62.18.
  1572.  
  1573.     * main.c: Don't #include <time.h>; make.h already does.
  1574.  
  1575. Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1576.  
  1577.     * implicit.c (pattern_search): Fixed copying of suffix when building
  1578.     also_make elts.
  1579.  
  1580.     * function.c (expand_function: `shell'): Make sure BUFFER is
  1581.     null-terminated before replacing newlines.
  1582.  
  1583.     * compatMakefile (mandir): Use man$(manext), not always manl.
  1584.  
  1585. Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1586.  
  1587.     * rule.c (new_pattern_rule): Not static.
  1588.     * rule.h: Declare it.
  1589.  
  1590.     * file.c (file_hash_enter): New function, most code from rename_file.
  1591.     (rename_file): Call it.
  1592.     * file.h (file_hash_enter): Declare it.
  1593.  
  1594.     * dep.h: Doc fix.
  1595.  
  1596. Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1597.  
  1598.     * main.c (decode_switches): Handle usage_and_exit when building
  1599.     long options vector.
  1600.  
  1601.     * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
  1602.     (default_variables): Define CHECKOUT,v (hairy).
  1603.  
  1604.     * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
  1605.     sys_siglist to _sys_siglist.
  1606.  
  1607. Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1608.  
  1609.     * NEWS: Add header and tail copyright info like Emacs NEWS.
  1610.  
  1611.     * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
  1612.     bcopy if already #define'd.
  1613.     [STDC_HEADERS] (qsort, abort, exit): Declare here.
  1614.     [! __GNU_LIBRARY__ && !POSIX]: Not here.
  1615.  
  1616.     * make.h [_AIX]: #pragma alloca first thing.
  1617.  
  1618.     * job.c (start_waiting_job): Set the command_state to cs_running
  1619.     when we queue a job on waiting_jobs.
  1620.  
  1621. Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1622.  
  1623.     * variable.c (define_automatic_variables): Use "" instead of nil
  1624.     for empty value.
  1625.  
  1626. Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1627.  
  1628.     * Version 3.62.17.
  1629.  
  1630.     * main.c (struct command_switch.type): Add alternative usage_and_exit.
  1631.     (command_switches): Add -h/--help.
  1632.  
  1633. Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1634.  
  1635.     * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
  1636.     * README.template: Mention NEWS.
  1637.     * CHANGES: Renamed to NEWS.
  1638.  
  1639.     * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
  1640.  
  1641. Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1642.  
  1643.     * main.c (main): Set -o files' command_states to cs_finished.
  1644.  
  1645.     * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
  1646.     when tossing a rule.
  1647.  
  1648.     * main.c (main): Use alloca only in simple local var assignment,
  1649.     for braindead SGI compiler.
  1650.  
  1651.     * rule.c (print_rule_data_base): Barf if num_pattern_rules is
  1652.     inconsistent with the number computed when listing them.
  1653.  
  1654. Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1655.  
  1656.     * commands.c (set_file_variables): For $? and $^ elts that are archive
  1657.     member refs, use member name only.
  1658.  
  1659. Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1660.  
  1661.     * variable.h (struct variable.export): Add new alternative v_ifset.
  1662.     * variable.c (target_environment): Check for it.
  1663.     (define_automatic_variables): Set it for MAKEFILES.
  1664.  
  1665. Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1666.  
  1667.     * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
  1668.     (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
  1669.     (distclean, mostlyclean): New targets.
  1670.  
  1671. Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1672.  
  1673.     * Version 3.62.16.
  1674.  
  1675.     * compatMakefile (config.status): Remove rule.
  1676.  
  1677.     * job.c (start_waiting_job): Free C after using C->file, not before.
  1678.  
  1679. Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1680.  
  1681.     * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
  1682.     HAVE_* instead of #ifndef *_MISSING.
  1683.     * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
  1684.  
  1685. Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1686.  
  1687.     * main.c (main): makelevel>0 or -C implies -w.
  1688.  
  1689. Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1690.  
  1691.     * file.c, job.c, function.c: Don't #include <errno.h>.
  1692.     make.h: Do it here instead.
  1693.     * arscan.c (ar_member_touch): Don't declare errno.
  1694.  
  1695. Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1696.  
  1697.     * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
  1698.  
  1699.     * remake.c (update_file): If commands or deps are running after
  1700.     update_file_1 returns, break out of the :: rule (->prev) loop and
  1701.     just return.
  1702.  
  1703.     * job.c    (job_next_command): New function; code from start_job.
  1704.     (start_job_command): Renamed from start_job.  Call job_next_command
  1705.     and recurse for empty command lines and -n.
  1706.     (start_waiting_job): Call start_job_command, not start_job.
  1707.     (new_job): Call job_next_command to prime the child structure, and
  1708.     then call start_waiting_job.
  1709.     (reap_children): Use job_next_command and start_job_command.
  1710.     (start_waiting_job): Call start_remote_job_p here, and store its
  1711.     result in C->remote.  If zero, check the load average and
  1712.     maybe put C on waiting_jobs.
  1713.     (start_job_command): Test CHILD->remote rather than calling
  1714.     start_remote_job_p.  Don't do load avg checking at all here.
  1715.  
  1716.     * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
  1717.     SIGSEGV, SIGFPE or SIGTRAP.
  1718.  
  1719.     * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
  1720.     configure will set it in glob/Makefile.
  1721.  
  1722. Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1723.  
  1724.     * dir.c [DIRENT] (direct): Don't define to dirent.
  1725.     [! DIRENT] (direct): Define to dirent.
  1726.     (dir_file_exists_p): Use struct dirent instead of struct direct.
  1727.  
  1728.     * make.h (getcwd): No space between macro and ( for args!
  1729.  
  1730.     * job.c (start_job): Don't put the job on waiting_jobs if
  1731.     job_slots_used==0.
  1732.  
  1733.     * make.texinfo (Missing): Shortened title.
  1734.  
  1735. Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1736.  
  1737.     * file.c (remove_intermediates): Print "rm" commands under -n.
  1738.  
  1739. Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1740.  
  1741.     * Version 3.62.15.
  1742.  
  1743. Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1744.  
  1745.     * arscan.c [M_UNIX]: #undef M_XENIX.
  1746.  
  1747. Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1748.  
  1749.     * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
  1750.  
  1751. Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1752.  
  1753.     * compatMakefile (getloadavg.o): Removed special rule.
  1754.     (CFLAGS): Don't include $(defines).
  1755.     (.c.o): Define suffix rule.
  1756.     (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
  1757.     (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
  1758.  
  1759.     * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
  1760.  
  1761.     * make.h (max): Removed.
  1762.     * expand.c (variable_buffer_output): Don't use it.
  1763.  
  1764.     * compatMakefile (INSTALL): Define.
  1765.     (Makefile): New rule to make from Makefile.in.
  1766.     (srcdir): Define.
  1767.     (VPATH): Define.
  1768.     (getloadavg.o, remote.o): Use autoconf $foo< hack.
  1769.  
  1770.     * commands.c (fatal_error_signal): Removed return.
  1771.  
  1772. Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1773.  
  1774.     * Version 3.62.14.
  1775.  
  1776.     * make.texinfo (Summary): New node.
  1777.     (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
  1778.  
  1779.     * variable.c (max): Moved to make.h.
  1780.  
  1781.     * compatMakefile (objs, srcs): Added ar & arscan.
  1782.  
  1783.     * job.c (start_waiting_job): New function, 2nd half of new_job.
  1784.     (new_job): Call it.
  1785.     (start_waiting_jobs): New function.
  1786.     * remake.c (update_goal_chain): Call start_waiting_jobs at the top
  1787.     of the main loop.
  1788.     * compatMakefile (objs, srcs): Removed load, added getloadavg.
  1789.  
  1790. Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1791.  
  1792.     * job.c (load_too_high): New function.  Uses getloadavg.
  1793.     (waiting_jobs): New variable.
  1794.     (start_job): Don't call wait_to_start_job.  Instead, if
  1795.     load_too_high returns nonzero, add the child to the
  1796.     `waiting_jobs' chain and return without starting the job.
  1797.  
  1798. Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1799.  
  1800.     * expand.c (variable_buffer_output): Made global again.
  1801.     * variable.h: And declare it.
  1802.  
  1803.     * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
  1804.     (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
  1805.     (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
  1806.     for a slash in the archive at run time.
  1807.     (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
  1808.     cope with trailing-slash and non-trailing-slash archives.
  1809.  
  1810.     * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
  1811.     [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
  1812.  
  1813.     * load.c (load_average) [sgi]: Use sysmp call.
  1814.  
  1815.     * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
  1816.     ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
  1817.  
  1818.     * make.h [HAVE_VFORK_H]: #include <vfork.h>.
  1819.     (vfork, VFORK_NAME): Don't define.
  1820.     * job.c (start_job): Use "vfork" in place of VFORK_NAME.
  1821.  
  1822.     * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
  1823.     the each file.  Rearranged PATH_MAX hacking.
  1824.     * job.c: Rearranged NGROUPS_MAX hacking.
  1825.  
  1826.     * remake.c (fstat, time): Don't declare.
  1827.  
  1828.     * compatMakefile (defines): Value is @DEFS@.
  1829.     (LOADLIBES): Value is @LIBS@.
  1830.     (extras): Value is @LIBOBJS@.
  1831.     (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
  1832.     * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
  1833.  
  1834.     * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
  1835.  
  1836.     * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
  1837.     (getcwd): Just declare if present.  If not, declare as a macro
  1838.     using getwd, and declare getwd.
  1839.     [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
  1840.     * main.c (main,    log_working_directory): Use getcwd instead of getwd.
  1841.  
  1842.     * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
  1843.  
  1844.     * make.h (SIGHANDLER, SIGNAL): Removed.
  1845.     (RETSIGTYPE): Define if not #define'd.
  1846.     * main.c (main): Use signal in place of SIGNAL.
  1847.  
  1848.     * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
  1849.  
  1850.     * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
  1851.     [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
  1852.  
  1853.     * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
  1854.     [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
  1855.  
  1856.     * job.c (child_handler), commands.c (fatal_error_signal): Return
  1857.     RETSIGTYPE instead of int.
  1858.     * main.c (main): Declare fatal_error_signal and child_handler here
  1859.     to return RETSIGTYPE; removed top-level decl of former.
  1860.  
  1861.     * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
  1862.     main.c [SIGSETMASK_MISSING]: Test this instead of USG.
  1863.  
  1864. Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1865.  
  1866.     * job.c [HAVE_WAITPID]: Test this instead of USG.
  1867.     [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
  1868.     (GID_T): Don't #define.
  1869.     (search_path): Use gid_t instead of GID_T.
  1870.     [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
  1871.     these individually instead of USG for all.
  1872.     * make.h (ctime): Don't declare.  #include time.h instead.
  1873.     [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
  1874.     _POSIX_VERSION.
  1875.     * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
  1876.     * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
  1877.  
  1878.     * arscan.c: Removed #ifdef mess about string.h et al.
  1879.     Just #include make.h instead.
  1880.     * make.h (fstat, atol): Declare.
  1881.  
  1882.     * commands.c (fatal_error_signal): Don't use sigmask to check for
  1883.     propagated signals; use ||s instead.
  1884.     (PROPAGATED_SIGNAL_MASK): Removed.
  1885.     (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
  1886.  
  1887.     * variable.c (variable_buffer, variable_buffer_length,
  1888.     initialize_variable_output, variable_output): Moved to expand.c;
  1889.     made all static.
  1890.     (struct output_state, save_variable_output,
  1891.     restore_variable_output): Removed.
  1892.     * expand.c (initialize_variable_output): Put a NUL at the beginning
  1893.     of the new buffer after allocating it.
  1894.     (allocated_variable_expand_for_file): Don't use
  1895.     {save,restore}_variable_output.  Do it by hand instead, keeping
  1896.     state on the stack instead of malloc'ing it.
  1897.     (allocated_variable_expand): Removed.
  1898.     * variable.h (allocated_variable_expand): Define here as macro.
  1899.     (variable_buffer_output, initialize_variable_output,
  1900.     save_variable_output, restore_variable_output): Removed decls.
  1901.  
  1902.     * read.c (conditional_line): For an if cmd, if any elt of the
  1903.     conditionals stack is ignoring, just push a new level that ignores
  1904.     and return 1; don't evaluate the condition.
  1905.  
  1906. Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1907.  
  1908.     * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
  1909.  
  1910.     * job.c (getdtablesize): Don't declare or #define if already #define'd.
  1911.  
  1912. Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1913.  
  1914.     * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
  1915.     export_all_variables.
  1916.     * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
  1917.  
  1918. Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1919.  
  1920.     * Version 3.62.13.
  1921.  
  1922.     * commands.c (set_file_variables): Calculate length for ^D and ?D
  1923.     individually, making sure to give them at least enough space for "./".
  1924.  
  1925.     * make.h [CRAY]: #define signal to bsdsignal.
  1926.  
  1927.     * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
  1928.     CF77PPFLAGS, CF77PP, CFT, CF, and FC.
  1929.  
  1930.     * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
  1931.     wasn't defined by <ar.h>.
  1932.  
  1933. Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1934.  
  1935.     * Version 3.62.12.
  1936.  
  1937. Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1938.  
  1939.     * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
  1940.     pattern_rules.
  1941.  
  1942. Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1943.  
  1944.     * main.c (decode_switches): Initialize all the long_option elt members.
  1945.  
  1946. Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1947.  
  1948.     * make.texinfo (Text Functions): Correct filter-out description.
  1949.  
  1950. Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1951.  
  1952.     * compatMakefile (realclean): Don't remove backup files.
  1953.  
  1954.     * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
  1955.  
  1956. Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1957.  
  1958.     * Version 3.62.11.
  1959.  
  1960. Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1961.  
  1962.     * job.c (reap_children): Don't die if wait returns EINTR.
  1963.  
  1964. Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1965.  
  1966.     * job.c (reap_children): Always run the next command for a
  1967.     successful target.  If we are going to die, we don't want to leave
  1968.     the target partially made.
  1969.  
  1970. Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1971.  
  1972.     * job.c (construct_command_argv_internal): After loop, if we only
  1973.     have one word, check it for being a shell command.
  1974.  
  1975.     * main.c (decode_switches): Allocate ARGC slots in other_args to
  1976.     begin with, so we never need to worry about growing it.
  1977.     If we get a non-option arg and POSIXLY_CORRECT is in the
  1978.     environment, break out of the loop.  After the loop, add all remaining
  1979.     args to other_args list.
  1980.  
  1981.     * main.c (decode_switches): For positive_int and floating switches
  1982.     when optarg is nil, use next arg if it looks right (start with a
  1983.     digit, or maybe decimal point for floating).
  1984.  
  1985.     * variable.c (define_automatic_variables): Always set SHELL to
  1986.     default if it comes from the environment.  Set its export bit.
  1987.     * make.texinfo (Environment): Document change.
  1988.  
  1989. Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1990.  
  1991.     * Version 3.62.10.
  1992.  
  1993.     * compatMakefile (tags, TAGS): Use vars for cmds.
  1994.     (ETAGS, CTAGS): Define.
  1995.  
  1996.     * main.c (decode_switches): If a switches elt has a nil long_name,
  1997.     make the long option name elt be "".
  1998.     Fixed loop to not ignore all the options.
  1999.  
  2000.     * make.texinfo (Option Summary): Added long options.
  2001.  
  2002.     * main.c (switches): Changed -m's description to "-b".
  2003.     (decode_switches): When printing the usage message, don't print
  2004.     switches whose descriptions start with -.
  2005.     When constructing the list of names for switch -C, search the
  2006.     switches vector for switches whose descriptions are "-C".
  2007.  
  2008.     * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
  2009.     Call -I --include-dir, not --include-path.
  2010.     (long_option_aliases): Added --new == -W, --assume-new == -W,
  2011.     --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
  2012.     --makefile == -f.
  2013.  
  2014.     * main.c (switches): Removed bogus "silent" elt.
  2015.     (long_option_aliases): Define new var.
  2016.     (decode_switches): Add long_option_aliases onto the end of the long
  2017.     options vector created for getopt_long.
  2018.     Look through long_option_aliases for extra names to list
  2019.     in usage message.
  2020.  
  2021. Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2022.  
  2023.     * main.c (log_working_directory): Fixed to properly not print the
  2024.     leaving message when we haven't printed the entering message.
  2025.  
  2026. Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2027.  
  2028.     * main.c (struct command_switch): Added elts `long_name', 
  2029.     `description', and `argdesc'.
  2030.     (switches): Added initializers for new members.
  2031.     (decode_switches): Rewritten to use getopt_long.
  2032.     * compatMakefile (GETOPT, GETOPT_SRC): Define.
  2033.     (objs, srcs): Include them.
  2034.  
  2035.     * job.c (child_died): Renamed to dead_children; made static.
  2036.     (child_handler): Increment dead_children instead of setting child_died.
  2037.     (reap_children): Decrement dead_children instead of clearing
  2038.     child_died.  The point of all this is to avoid printing "waiting
  2039.     for unfinished jobs" when we don't actually need to block.
  2040.     This happened when multiple SIGCHLDs before reap_children was called.
  2041.  
  2042.     * job.c (reap_children): If ERR is set, so we don't call start_job
  2043.     on the child being reaped, instead set its command_state to
  2044.     cs_finished.
  2045.     (reap_children, child_handler, new_job): I added several
  2046.     debugging printf's while fixing this.  I left them in if (debug_flag) 
  2047.     because they may be useful for debugging this stuff again.
  2048.  
  2049. Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2050.  
  2051.     * read.c (read_makefile): v_export is not 1.
  2052.  
  2053. Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2054.  
  2055.     * Version 3.62.9.
  2056.  
  2057.     * variable.c (export_all_variables): New variable.
  2058.     (target_environment): Export variables whose `export' member is
  2059.     v_default if export_all_variables is set and their names are benign.
  2060.     * variable.h: Declare export_all_variables.
  2061.     * read.c (read_makefile): If export or unexport is given with no
  2062.     args, set or clear export_all_variables, respectively.
  2063.  
  2064.     * variable.c (target_environment): Exclude MAKELEVEL in the loop,
  2065.     so it isn't duplicated when we add it at the end.
  2066.  
  2067. Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2068.  
  2069.     * Version 3.62.8.
  2070.  
  2071.     * variable.h (struct variable): Added new member `export'.
  2072.     * variable.c (define_variable_in_set): Initialize it to v_default.
  2073.     (target_environment): Don't check for .NOEXPORT.
  2074.     Export variables whose `export' member is v_default and that would
  2075.     have been exported under .NOEXPORT, and variables whose `export'
  2076.     member is v_export.
  2077.     (try_variable_definition): Return the variable defined.
  2078.     * variable.h (try_variable_definition): Changed decl.
  2079.     * read.c (read_makefile): Recognize `export' and `unexport' directives.
  2080.  
  2081. Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2082.  
  2083.     * main.c (main) [POSIX]: Reversed args to sigaddset.
  2084.  
  2085. Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2086.  
  2087.     * job.c [POSIX || !USG] (unblock_sigs): New fn.
  2088.     (start_job): Block signals before forking.
  2089.     (new_job): Unblock signals after putting the new child on the chain.
  2090.     * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
  2091.     int fatal_signal_mask.
  2092.  
  2093.     * load.c [sgi] (LDAV_CVT): Define.
  2094.  
  2095. Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2096.  
  2097.     * Version 3.62.7.
  2098.  
  2099.     * load.c (load_average) [sgi]: Clear the high bit of the address
  2100.     from the symbol table before looking it up in kmem.
  2101.  
  2102.     * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
  2103.     (remake_file): No longer needed in message here.
  2104.  
  2105.     * main.c (die): Call reap_children with BLOCK==1.
  2106.  
  2107. Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2108.  
  2109.     * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
  2110.  
  2111. Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2112.  
  2113.     * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
  2114.     not to head of chain.  Extract next ptr before we might do
  2115.     freerule, and use that for next iteration.
  2116.     (freerule): Still do next ptr frobbing if LASTRULE is nil.
  2117.  
  2118. Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2119.  
  2120.     * job.c (child_error): Removed extra %s from error msg format.
  2121.  
  2122.     * Version 3.62.6.
  2123.  
  2124.     * job.c (reap_children): Don't start later commands in a sequence
  2125.     if ERR is nonzero.
  2126.  
  2127.     * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
  2128.  
  2129.     * job.c (reap_children): New function; work that used to be done in
  2130.     child_handler.
  2131.     (child_died): New global var.
  2132.     (child_handler): Now just sets child_died.
  2133.     (wait_for_children): Removed.
  2134.     (unknown_children_possible, block_signals, unblock_signals,
  2135.     push_signals_blocked_p, pop_signals_blocked_p): Removed.
  2136.     (child_execute_job): Removed call to unblock_signals.
  2137.     (new_job): Removed calls to push_signals_blocked_p and
  2138.     pop_signals_blocked_p.
  2139.     * job.h: Declare reap_children, not wait_for_children.
  2140.     * commands.c (fatal_error_signal), job.c (new_job),
  2141.     load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
  2142.     remake.c (update_goal_chain), function.c (expand_function: `shell'):
  2143.     Changed wait_for_children calls to reap_children.
  2144.     Some needed to be loops to wait for all children to die.
  2145.     * commands.c (fatal_error_signal), main.c (main,
  2146.     log_working_directory), function.c (expand_function): Removed calls
  2147.     to push_signals_blocked_p and pop_signals_blocked_p.
  2148.     * job.h: Removed decls.
  2149.  
  2150.     * job.h: Added copyright notice.
  2151.  
  2152. Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2153.  
  2154.     * job.c (child_error): No *** for ignored error.
  2155.  
  2156. Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2157.  
  2158.     * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
  2159.     avoid compiler warnings.
  2160.  
  2161.     * read.c (parse_file_seq): Don't remove ./ when it is followed by a
  2162.     blank.
  2163.  
  2164. Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2165.  
  2166.     * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
  2167.     avoid compiler warnings.
  2168.  
  2169.     * remake.c (notice_finished_file): Run file_mtime on the also_make
  2170.     files, so vpath_search can happen.
  2171.  
  2172.     * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
  2173.     (alpha-files): Include test suite tar file.
  2174.  
  2175. Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2176.  
  2177.     * Version 3.62.5.
  2178.  
  2179. Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2180.  
  2181.     * remake.c (update_file, update_file_1): Do check_renamed on elts
  2182.     of dep chains when traversing them.  Something unrelated might have
  2183.     renamed one of the files the dep chain points to.
  2184.  
  2185.     * file.c (rename_file): If FILE has been renamed, follow its
  2186.     `renamed' ptr, so we get to the final real FILE.  Using the renamed
  2187.     ones loses because they are not in the hash table, so the removal
  2188.     code loops infinitely.
  2189.  
  2190.     * read.c (read_all_makefiles): Clobber null terminator into
  2191.     MAKEFILES expansion, so string passed to read_makefile is properly
  2192.     terminated.
  2193.  
  2194. Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2195.  
  2196.     * commands.c (set_file_variables): $* for archive member with
  2197.     explicit cmds is stem of member, not of whole `lib(member)'.
  2198.  
  2199. Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2200.  
  2201.     * Version 3.62.4.
  2202.  
  2203. Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2204.  
  2205.     * rule.c (new_pattern_rule): Rules are identical only if all their
  2206.     targets match (regardless of order).
  2207.  
  2208. Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2209.  
  2210.     * remake.c (remake_file): Changed error "no way to make" to "no
  2211.     rule to make".  Fiat Hugh.
  2212.  
  2213.     * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
  2214.     behavior.
  2215.  
  2216.     * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
  2217.     target.
  2218.  
  2219. Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2220.  
  2221.     * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
  2222.     environment to pass to child.
  2223.     * job.c (start_job): Pass it.
  2224.  
  2225. Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2226.  
  2227.     * file.c (enter_file): Also strip ./s here, to get command-line
  2228.     target names.
  2229.  
  2230.     * remote-cstms.c: Add comment telling people to leave me alone.
  2231.  
  2232.     * compatMakefile (manpage install): Remove target before copying.
  2233.  
  2234. Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2235.  
  2236.     * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
  2237.     Added paragraph describing $? incompatibility with Unix and POSIX.2.
  2238.  
  2239. Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
  2240.  
  2241.     * function.c (expand_function: `shell'): Don't declare fork or pipe.
  2242.     Use vfork instead of fork.
  2243.  
  2244. Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2245.  
  2246.     * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
  2247.     intermediate files.
  2248.  
  2249.     * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
  2250.  
  2251. Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2252.  
  2253.     * Version 3.62.3.
  2254.  
  2255. Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2256.  
  2257.     * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
  2258.  
  2259. Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2260.  
  2261.     * read.c (read_makefile): Correctly handle define & endef in ifdefs.
  2262.  
  2263.     * read.c (record_files): Pass arg for %s in error msg.
  2264.  
  2265.     * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
  2266.     call.
  2267.  
  2268. Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2269.  
  2270.     * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
  2271.  
  2272. Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2273.  
  2274.     * read.c (read_makefile): Check for extraneous `endef' when ignoring.
  2275.  
  2276. Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2277.  
  2278.     * Version 3.62.2.
  2279.  
  2280. Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2281.  
  2282.     * job.c (construct_command_argv_internal): Correctly ignore
  2283.     whitespace after backslash-NL.
  2284.  
  2285. Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2286.  
  2287.     * compatMakefile: Ignore errors from chgrp and chmod when installing.
  2288.  
  2289. Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2290.  
  2291.     * main.c (main): When setting MAKELEVEL in the env to re-exec,
  2292.     allocate space so as not to clobber past the end of the old string.
  2293.  
  2294.     * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
  2295.     * compatMakefile (defines): Document HAVE_ALLOCA_H.
  2296.  
  2297. Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2298.  
  2299.     * make.h [VFORK_MISSING]: Use fork instead.
  2300.     * compatMakefile (defines): Document same.
  2301.  
  2302.     * job.c (construct_command_argv_internal): Don't create an empty
  2303.     arg if backslash-NL is at beginning of word.
  2304.  
  2305. Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2306.  
  2307.     * main.c [DGUX]: Call setvbuf as for USGr3.
  2308.  
  2309.     * job.c (construct_command_argv_internal): Notice correctly that
  2310.     backslash-NL is the end of the arg (because it is replaced with a
  2311.     space).
  2312.  
  2313. Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2314.  
  2315.     * job.c (construct_command_argv_internal): If SHELL is nil, set it
  2316.     to default_shell before proceeding.
  2317.  
  2318.     * make.h [sgi]: No alloca.h, after all.
  2319.  
  2320. Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2321.  
  2322.     * read.c (multi_glob): Cons up the chain of the results of glob
  2323.     from back to front, so it comes out in forward order.
  2324.  
  2325.     * job.c (construct_command_argv_internal): Don't eat char following
  2326.     backslash-NL.
  2327.  
  2328. Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2329.  
  2330.     * Version 3.62.1.
  2331.  
  2332.     * default.c (default_variables) [ultrix]: GET=get, like USG.
  2333.  
  2334.     * job.c (construct_command_argv_internal): Remove tabs following
  2335.     backslash-NL combos in the input line, so they don't show up when
  2336.     that line is printed.
  2337.  
  2338.     * read.c (read_makefile): Don't collapse_continuations the line on
  2339.     input; do it on the copy we do remove_comments on.
  2340.     For rule lines, collapse_continuations the line after chopping
  2341.     ";cmds" off the end, so we don't eat conts in the cmds.
  2342.     Give error for ";cmds" with no rule.
  2343.     * job.c (construct_command_argv_internal): Eat backslash-NL combos
  2344.     when constructing the line to recurse on for slow, too.
  2345.  
  2346. Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2347.  
  2348.     * file.c (enter_file): Don't strip leading `./'s.
  2349.     * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
  2350.     * default.c (set_default_suffixes), function.c (string_glob),
  2351.     read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
  2352.  
  2353.     * default.c (default_variables) [_IBMR2]: FC=xlf
  2354.  
  2355.     * job.c (construct_command_argv_internal): Turn backslash-NL and
  2356.     following whitespace into a single space, rather than just eating
  2357.     the backslash.
  2358.  
  2359.     * make.texinfo (Copying): @include gpl.texinfo, rather than
  2360.     duplicating its contents.
  2361.  
  2362. Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2363.  
  2364.     * job.c (construct_command_argv_internal): Make sure not to bother
  2365.     processing an empty line.
  2366.  
  2367.     * Version 3.62.0.
  2368.  
  2369.     * job.c (construct_command_argv_internal): Always recurse for slow;
  2370.     simple case didn't handle finding newlines.
  2371.  
  2372. Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2373.  
  2374.     * job.c (construct_command_argv_internal): Set RESTP properly when
  2375.     slow; don't \ify past a newline.
  2376.  
  2377. Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2378.  
  2379.     * make.h [sgi]: #include <alloca.h>.
  2380.  
  2381. Tue Oct 29 20:57:36 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2382.  
  2383.     * Version 3.62.
  2384.  
  2385.     * remake.c (update_file_1): Check for deps still running before
  2386.     giving up if any dep has failed.
  2387.  
  2388. Sat Oct 26 16:20:00 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2389.  
  2390.     * make.h [uts]: #undef S_ISREG and S_ISDIR if defined.
  2391.  
  2392. Fri Oct 25 19:50:39 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2393.  
  2394.     * Version 3.60.17.
  2395.  
  2396. Thu Oct 24 16:58:36 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2397.  
  2398.     * job.c (start_job): Don't check for empty cmds before tweaking the
  2399.     command_ptr.  Just let construct_command_argv do it.
  2400.  
  2401. Tue Oct 22 20:21:03 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2402.  
  2403.     * remake.c, arscan.c [POSIX]: <fcntl.h> instead of <sys/file.h>.
  2404.  
  2405.     * make.h [POSIX]: Declare vfork as pid_t.
  2406.  
  2407. Mon Oct 21 15:37:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2408.  
  2409.     * Version 3.60.16.
  2410.  
  2411.     * job.c (construct_command_argv, construct_command_argv_internal):
  2412.     Take new 2nd arg RESTP.  If non-NULL, stop parsing at newline, and
  2413.     store addr of the NL in *RESTP.
  2414.     (start_job): Don't chop expanded cmd lines up; use above code to do it.
  2415.     * function.c (expand_function: `shell'): Pass RESTP==NULL.
  2416.  
  2417. Sat Oct 19 15:36:34 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2418.  
  2419.     * Version 3.60.15.
  2420.  
  2421. Fri Oct 18 15:26:55 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2422.  
  2423.     * job.c (start_job): If on the same cmds->command_lines elt, look
  2424.     at cmds->lines_recurse[CHILD->command_line - 1] instead of
  2425.     [CHILD->command_line].
  2426.  
  2427.     * dir.c [sgi]: <sys/dir.h>, not ndir or anything else.
  2428.  
  2429. Thu Oct 17 16:28:55 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2430.  
  2431.     * file.c (print_file_data_base): Remove unused var.
  2432.  
  2433.     * make.h [NeXT]: No #define ANSI_STRING.
  2434.  
  2435. Tue Oct 15 20:08:41 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2436.  
  2437.     * Version 3.60.14.
  2438.  
  2439. Fri Oct 11 16:23:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2440.  
  2441.     * make.h: Use PATH_MAX for getwd defn.
  2442.  
  2443.     * make.h: Move getcwd/getwd outside of #ifndef POSIX, and make it
  2444.     #if USG||POSIX.
  2445.  
  2446. Thu Oct 10 11:53:31 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2447.  
  2448.     * Version 3.60.13.
  2449.  
  2450.     * read.c (read_all_makefiles): When processing MAKEFILES, save the
  2451.     malloc'd ptr to be freed, instead of freeing part-way thru it.
  2452.  
  2453.     * remake.c (update_file_1): Don't tweak FILE->also_make.
  2454.     (update_file): Do it here.  After calling update_file_1, set the
  2455.     command_state, update_status, and updated members of each also_make
  2456.     elt to FILE's values.
  2457.  
  2458. Tue Oct  8 14:56:04 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2459.  
  2460.     * Version 3.60.12.
  2461.  
  2462.     * remake.c (notice_finished_file): Set command_state of FILE and
  2463.     its also_make chain to cs_finished here.
  2464.     * commands.c (execute_file_commands), job.c (child_handler),
  2465.     remake.c (remake_file): Don't set it before calling
  2466.     notice_finished_file.
  2467.  
  2468.     * file.h (struct file): Changed `also_make' to struct dep *.
  2469.     * job.c (delete_child_targets), file.c (print_file_data_base),
  2470.     remake.c (notice_finished_file), implicit.c (pattern_search):
  2471.     Use dep chain instead of array of file names.
  2472.  
  2473. Mon Oct  7 17:04:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2474.  
  2475.     * Version 3.60.11.
  2476.  
  2477.     * arscan.c: Declare open.
  2478.     * misc.c: Declare {get,set}{re,}[ug]id.
  2479.     * variable.c (target_environment): Declare getenv.
  2480.  
  2481. Sat Oct  5 15:13:03 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2482.  
  2483.     * make.h [NeXT]: <string.h> instead of <strings.h>.
  2484.  
  2485. Fri Oct  4 16:05:41 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2486.  
  2487.     * default.c (default_suffixes, defualt_suffix_rules): Add .texi
  2488.     just like .texinfo.
  2489.  
  2490.     * Version 3.60.10.
  2491.  
  2492.     * job.c: Move vfork decl into make.h.
  2493.  
  2494. Fri Sep 27 18:45:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2495.  
  2496.     * compatMakefile (glob/libglob.a): Pass CC value to submake.
  2497.  
  2498. Thu Sep 26 00:08:15 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2499.  
  2500.     * load.c (load_average): Made not static.
  2501.  
  2502.     * load.c [ultrix && vax]: Define LDAV_TYPE and LDAV_CVT for Ultrix 4.2.
  2503.  
  2504. Tue Sep 24 00:17:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2505.  
  2506.     * Version 3.60.9.
  2507.  
  2508.     * read.c (record_files): Warn about extra cmds even if the target's
  2509.     name begins with a dot.  I think the lusers can handle this.
  2510.  
  2511. Mon Sep 23 22:33:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2512.  
  2513.     * make.h, arscan.c: Don't declare bcmp, bzero, or bcopy if they're
  2514.     #define'd.
  2515.     * make.h: Declare write and open.
  2516.  
  2517.     * default.c (default_suffixes, default_suffix_rules,
  2518.     default_variables): Add .C just like .cc.
  2519.     * make.texinfo (Catalogue of Rules): Document .C.
  2520.  
  2521.     * make.man (-w): Fix gramo.
  2522.  
  2523. Fri Sep 20 17:18:16 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2524.  
  2525.     * make.h: No text after #endif.
  2526.  
  2527. Sun Sep 15 16:20:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2528.  
  2529.     * Version 3.60.8.
  2530.  
  2531.     * implicit.c (pattern_search): In the second pass, recurse on rule
  2532.     deps that don't have a %.  Why did I make it not do this?
  2533.  
  2534. Fri Sep 14 18:29:39 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2535.  
  2536.     * read.c (record_files): For extra cmds, use the last ones given.
  2537.     If the target's name doesn't begin with a dot (bletch!!), emit a
  2538.     two-line warning, one line giving the old cmds' location and the
  2539.     other the new cmds' location.
  2540.  
  2541.     * misc.c (makefile_error, makefile_fatal): New fns.
  2542.     * make.h: Declare them.
  2543.     * Use them instead of error/fatal for all msgs including a file
  2544.     name and line number.
  2545.  
  2546. Thu Sep 13 16:35:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2547.  
  2548.     * make.h: Declare define_default_variables.
  2549.     Declare ar_parse_name, instead of ar_name_parse (M-t).
  2550.  
  2551. Mon Sep 10 18:35:40 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2552.  
  2553.     * Version 3.60.7.
  2554.  
  2555.     * make.texinfo (Variables: Setting): Say whitespace is removed if
  2556.     "immediately after =", rather than simply "after =".
  2557.  
  2558.     * job.c: Don't declare wait #ifdef POSIX.
  2559.  
  2560.     * make.h [__GNUC__]: #undef alloca and then #define it.
  2561.  
  2562.     * main.c (main): When pruning makefiles which might loop from the
  2563.     read_makefiles chain, look at all `prev' entries of double-colon rules.
  2564.  
  2565. Fri Sep  7 00:41:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2566.  
  2567.     * main.c (main): Only remove makefiles with cmds but no deps from
  2568.     the list of makefiles to be rebuilt if they are :: targets.
  2569.     : targets with cmds and no deps are not dangerous.
  2570.  
  2571. Wed Sep  5 17:35:51 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2572.  
  2573.     * compatMakefile (defines): Add comment that some compilers take
  2574.     ENUM_BITFIELDS but produce bogus code.
  2575.     (LOAD_AVG): Fix examples to \ "s.
  2576.     (LOADLIBES): Add comment that SGI Irix needs -lmld for nlist.
  2577.  
  2578. Tue Sep  4 20:26:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2579.  
  2580.     * Version 3.60.6.
  2581.  
  2582. Fri Aug 30 19:34:04 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2583.  
  2584.     * remake.c (update_file_1): When checking the command_state of
  2585.     deps, check through the prev chain.
  2586.     (update_goal_chain): When a target is finished, start checking its
  2587.     prev (if it has one) instead.
  2588.  
  2589. Wed Aug  7 17:32:03 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2590.  
  2591.     * rule.c (convert_to_pattern): Allow files with deps to define
  2592.     suffix rules (really this time).
  2593.  
  2594. Mon Aug  5 17:09:21 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2595.  
  2596.     * misc.c (user_access, make_access): Do saved-IDs (USG) flavor
  2597.     #ifdef POSIX.
  2598.  
  2599.     * file.c (enter_file): Strip ./s here.
  2600.     * read.c (parse_file_seq): Not here.
  2601.  
  2602. Tue Jul 23 23:34:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2603.  
  2604.     * compatMakefile: Added comment that -lPW alloca is broken on HPUX.
  2605.  
  2606. Thu Jul 18 03:10:41 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2607.  
  2608.     * Version 3.60.5.
  2609.  
  2610.     * read.c (read_makefile): Ignore lines containing chars that are
  2611.     all isspace, not just all isblank.
  2612.  
  2613.     * make.texinfo (Copying): @include gpl.texinfo, rather than copying
  2614.     the text.
  2615.     * gpl.texinfo: New file (symlink to /gd/gnu/doc/gpl.texinfo).
  2616.     * GNUmakefile: Put gpl.texinfo in distribution.
  2617.  
  2618. Tue Jul 16 12:50:35 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2619.  
  2620.     * make.h: #define _GNU_SOURCE before including headers.
  2621.     Include <ctype.h> and define isblank if <ctype.h> doesn't.
  2622.     * commands.c: Don't include <ctype.h> here.
  2623.     * *.c: Use isblank instead of explicit ' ' || '\t'.
  2624.  
  2625. Mon Jul 15 17:43:38 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2626.  
  2627.     * function.c (expand_function: `filter'/`filter-out'): Fixed to not
  2628.     loop infinitely.
  2629.  
  2630. Fri Jul 12 12:18:12 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2631.  
  2632.     * function.c (expand_function: `filter'/`filter-out'): Rewritten to
  2633.     handle filter-out of multiple patterns properly.  Also no longer
  2634.     mallocs and reallocs for temp array; uses alloca and a linked-list
  2635.     instead.
  2636.  
  2637. Wed Jul 10 22:34:54 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2638.  
  2639.     * Version 3.60.4.
  2640.  
  2641.     * make.texinfo: Moved some @groups that were outside @examples to
  2642.     be inside them.
  2643.  
  2644.     * load.c [apollo] (load_average): Define using special syscall for
  2645.     Apollo DOMAIN/OS SR10.n.
  2646.  
  2647. Thu Jul  4 12:32:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2648.  
  2649.     * make.texinfo (Missing): Added Unix excessive implicit rule
  2650.     search; mention that POSIX.2 doesn't require any of the missing
  2651.     features.
  2652.     (Top): Updated printed manual price to $15.
  2653.  
  2654. Wed Jul  3 18:17:50 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2655.  
  2656.     * file.c (rename_file): Carry over last_mtime when merging files.
  2657.     * remake.c (f_mtime): Tail-recurse after renaming VPATH file, to
  2658.     check for saved date in existing renamed-to file.
  2659.  
  2660.     * remote-cstms.c (start_remote_job): Use PATH_VAR.
  2661.  
  2662.     * commands.c [POSIX || __GNU_LIBRARY__]: Don't declare getpid.
  2663.  
  2664.     * compatMakefile (glob-{clean,realclean}): Run clean/realclean in glob.
  2665.     (clean, realclean): Require those.
  2666.  
  2667.     * make.h: Always declare environ.
  2668.     Don't declare old glob functions.
  2669.  
  2670.     * GNUmakefile: Make no-lib deps for load.c and remote.c.
  2671.  
  2672. Tue Jul  2 18:35:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2673.  
  2674.     * Version 3.60.3.
  2675.  
  2676. Mon Jul  1 16:58:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2677.  
  2678.     * read.c (multi_glob): Don't pass GLOB_QUOTE flag to glob.
  2679.  
  2680.     * make.h [POSIX]: Include <unistd.h>, and don't declare things that
  2681.     should be there.
  2682.  
  2683.     * main.c (main) [USG && sgi]: malloc a buffer for broken sgi stdio.
  2684.  
  2685. Sat Jun 29 11:22:21 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2686.  
  2687.     * function.c (expand_function: `shell'): Use alloca for the error
  2688.     msg buffer, instead of assuming an arbitrary max size.
  2689.  
  2690. Fri Jun 28 18:15:08 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2691.  
  2692.     * job.c [POSIX] (search_path): Do real 1003.1 goop to get NGROUPS_MAX.
  2693.  
  2694. Wed Jun 26 11:04:44 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2695.  
  2696.     * default.c (define_default_variables): New fn.
  2697.     (install_default_implicit_rules): Code for above fn moved there.
  2698.     * main.c (main): Do define_default_variables before reading the
  2699.     makefile.
  2700.  
  2701. Tue Jun 25 17:30:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2702.  
  2703.     * main.c (main): Quote ; in MAKEOVERRIDES.
  2704.  
  2705. Tue Jun 18 13:56:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2706.  
  2707.     * compatMakefile: Fixed typo in comment.
  2708.  
  2709. Tue Jun 11 00:14:59 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2710.  
  2711.     * Version 3.60.2.
  2712.  
  2713. Mon Jun 10 14:46:37 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2714.  
  2715.     * make.h: Always include <sys/types.h>.
  2716.     [POSIX]: Include <limits.h> and #define MAXPATHLEN to be PATH_MAX.
  2717.  
  2718.     * default.c (default_suffix_rules: .texinfo.dvi): Use $(TEXI2DVI).
  2719.     (default_variables): Define TEXI2DVI.
  2720.  
  2721. Thu Jun  6 16:49:19 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2722.  
  2723.     * Version 3.60.1.
  2724.  
  2725.     * make.h (SIGNAL): Cast handler arg to SIGHANDLER type.
  2726.  
  2727. Wed Jun  5 06:00:43 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2728.  
  2729.     * read.c (multi_glob): Use POSIX.2 `glob' function.
  2730.     If a glob pattern matches nothing, leave it as is (a la sh, bash).
  2731.     Also, if can't find USER for ~USER, leave it as is (a la bash).
  2732.  
  2733. Mon Jun  3 16:36:00 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2734.  
  2735.     * compatMakefile: Rewrote comments about -Ds to be easier to use.
  2736.  
  2737.     * make.h, arscan.c, remake.c, main.c, dir.c, job.c: Changed tests
  2738.     of _POSIX_SOURCE to POSIX.
  2739.  
  2740.     * job.c: Take getdtablesize out of #ifdef __GNU_LIBRARY__.
  2741.     Put separately #ifdef USG.
  2742.  
  2743.     * COPYING: Replaced with version 2.
  2744.     * Changed copyright notices to refer to GPL v2.
  2745.  
  2746. Thu May 30 00:31:11 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2747.  
  2748.     * make.h: Don't declare sigblock for POSIX.
  2749.  
  2750.     * main.c (main, log_working_directory) [USG]: Get getcwd failure
  2751.     mode from errno, not passed buffer like BSD getwd.
  2752.  
  2753.     * misc.c (child_access): New fn to set access for a child process;
  2754.     like user_access, but you can't change back.
  2755.     * make.h: Declare it.
  2756.     * job.c (exec_command): Use it in place of user_access.
  2757.  
  2758. Wed May 29 23:28:48 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2759.  
  2760.     * default.c (default_variables) [pyr]: PC = pascal.
  2761.  
  2762. Tue May 28 20:24:56 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2763.  
  2764.     * variable.c (print_variable): Put a newline before `endef'.
  2765.  
  2766. Sat May 25 02:39:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2767.  
  2768.     * Version 3.60.
  2769.  
  2770. Wed May 22 19:41:37 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2771.  
  2772.     * Version 3.59.5.
  2773.  
  2774. Thu May 16 13:59:24 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2775.  
  2776.     * main.c (main): Do USGr3 setvbuf behavior #ifdef APOLLO.
  2777.     Don't handle SIGCHLD #ifdef USG (Apollo is USG but defines SIGCHLD).
  2778.  
  2779. Fri May 10 14:59:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2780.  
  2781.     * remake.c [sgi]: Don't include <sys/file.h>.
  2782.  
  2783. Wed May  8 01:54:08 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2784.  
  2785.     * make.h (SIGHANDLER): #define as (void *) #if __STDC__,
  2786.     else (int (*)()).
  2787.     (SIGNAL): Use it to cast return value.
  2788.     * main.c (main): Cast SIG_IGN to SIGHANDLER when comparing.
  2789.     * job.c (block_signals, unblock_signals): Use SIGNAL instead of signal.
  2790.  
  2791.     * main.c: Declare mktemp to return char*, not int.
  2792.  
  2793.     * job.c (new_job): Don't increment files_remade.
  2794.     * remake.c (notice_finished_file): Do it here.
  2795.  
  2796.     * read.c (do_define): Don't clobber DEFINITION[-1] on empty defns.
  2797.     Free storage that is no longer needed.
  2798.  
  2799. Wed Apr 24 20:49:48 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  2800.  
  2801.     * misc.c (message): New fn to print informational msgs with
  2802.     leading "make: " or "make[N]: ".
  2803.     * make.h: Declare it.
  2804.     * remake.c (update_file): Use it instead of printf.
  2805.  
  2806. Fri Apr 19 05:52:45 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  2807.  
  2808.     * main.c (main): When there are no targets, if there were no
  2809.     makefiles, print a different error message, which mentions makefiles.
  2810.  
  2811. Tue Apr 16 03:22:45 1991  Roland McGrath  (roland at geech.gnu.ai.mit.edu)
  2812.  
  2813.     * remake.c (update_file): Print "nothing to be done" instead of "is
  2814.     up to date" if FILE->cmds == 0.
  2815.  
  2816.     * job.c [!WIFEXITED]: Define if not already defined.
  2817.  
  2818. Thu Apr 11 18:00:50 1991  Roland McGrath  (roland at wookumz.gnu.ai.mit.edu)
  2819.  
  2820.     * arscan.c (ar_name_equal): Fixed truncation comparison.
  2821.  
  2822. Tue Apr  2 16:17:35 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  2823.  
  2824.     * glob.c: Use common version from djm.
  2825.     * dir.c: Snarfed #ifdef mess for <dirent.h> or whatever from glob.c.
  2826.     (dir_file_exists_p): Ignore directory entries with d_ino==0.
  2827.  
  2828. Mon Apr  1 20:49:45 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  2829.  
  2830.     * Version 3.59.4.
  2831.  
  2832. Fri Mar 29 19:16:18 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  2833.  
  2834.     * job.c (free_child): Free CHILD->environment and its elts.
  2835.  
  2836. Sat Mar 23 14:08:09 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  2837.  
  2838.     * read.c (read_makefile): Don't ignore lines containing only
  2839.     comments if they start with a tab.  Such lines should be passed to
  2840.     the shell for it to decide about the comments.
  2841.  
  2842.     * job.c (free_child): Free CHILD->command_lines and its elts, not
  2843.     CHILD->commands (which is obsolete).
  2844.     * job.h, job.c: Remove obsolete `commands' member of `struct child'.
  2845.  
  2846. Sun Mar 17 18:40:53 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2847.  
  2848.     * remake.c (update_file): Print a msg for a top-level up-to-date
  2849.     phony target (a different one than for a real file).
  2850.  
  2851.     * read.c (conditional_line): Boundary check so we don't check the
  2852.     value of the -1th elt of the stack (which is bogus).
  2853.  
  2854. Sat Mar 16 16:58:47 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2855.  
  2856.     * read.c (conditional_line): Don't evaluate an if* when we're
  2857.     already ignoring.  Instead, just push a new level, with a value of
  2858.     1, to keep ignoring.
  2859.  
  2860. Tue Mar 12 00:16:52 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  2861.  
  2862.     * Version 3.59.3.
  2863.  
  2864. Mon Mar 11 23:56:57 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  2865.  
  2866.     * job.c (construct_command_argv_internal): Quote backslashes
  2867.     when building the shell -c line.
  2868.  
  2869. Fri Mar  8 01:40:18 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  2870.  
  2871.     * job.c (exec_command): Call user_access rather than setgid(getgid()).
  2872.  
  2873.     * misc.c (remove_comments): Renamed from collapse_line; took out
  2874.     collapse_continuations call.
  2875.     * make.h: Change decl.
  2876.     * read.c (read_makefile): Collapse continuations on the line buffer
  2877.     immediately after reading it.  Call remove_comments rather than
  2878.     collapse_line (which is now defunct).
  2879.  
  2880. Thu Feb 21 18:06:51 1991  Roland McGrath  (mcgrath at cygint.cygnus.com)
  2881.  
  2882.     * misc.c (user_access, make_access): New fns to toggle btwn permissions
  2883.     for user data (files and spawning children), and permissions for make
  2884.     (for taking the load average, mostly).
  2885.     * make.h: Declare them.
  2886.     * job.c (start_job): Call make_access before wait_to_start_job, and
  2887.     user_access after.
  2888.     * main.c (main): Call user_access before doing much.
  2889.  
  2890. Mon Feb  3 15:02:03 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2891.  
  2892.     * Version 3.59.2.
  2893.  
  2894. Tue Jan 29 20:30:50 1991  Roland McGrath  (roland at cygint.cygnus.com)
  2895.  
  2896.     * read.c (read_all_makefiles): Use allocated_variable_expand to expand
  2897.     `$(MAKEFILES)', since the results are used across calls to
  2898.     read_makefile, which could clobber them.
  2899.  
  2900. Wed Jan 23 00:24:10 1991  Roland McGrath  (roland at cygint.cygnus.com)
  2901.  
  2902.     * main.c (main): Call install_default_implicit_rules after reading
  2903.     makefiles, not before.
  2904.     * default.c (install_default_implicit_rules): If a suffix-rule file
  2905.     entry has cmds, don't give it any from default_suffix_rules.
  2906.  
  2907. Fri Jan 17 17:39:49 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2908.  
  2909.     * arscan.c: Added support for AIX archives.
  2910.  
  2911.     * remake.c: Don't include ar.h.
  2912.     * main.c: Removed unused atol decl.
  2913.     * arscan.c (ar_scan): Declare arg FUNCTION to return long int.
  2914.     * ar.c (ar_touch): Don't perror for an invalid archive.
  2915.     * make.h: Declare lseek as long int.
  2916.  
  2917.     * job.c [hpux]: Define getdtablesize a la USG.
  2918.  
  2919. Sun Jan 12 21:08:34 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2920.  
  2921.     * Version 3.59.1.
  2922.  
  2923. Fri Jan 10 03:48:08 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2924.  
  2925.     * job.c (search_path): Take new arg, place to put full pathname (rather
  2926.     than mallocing it).
  2927.     (exec_command): Pass it, using auto storage.
  2928.  
  2929.     * main.c (print_version): Updated copyright years.
  2930.  
  2931. Wed Jan  8 19:46:19 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2932.  
  2933.     * job.c [_POSIX_SOURCE]: Just #include <sys/wait.h>, and define macro
  2934.     WAIT_NOHANG in terms of waitpid.
  2935.     [!_POSIX_SOURCE && (HAVE_SYS_WAIT || !USG)]: Don't #include <signal.h>
  2936.     (make.h does).
  2937.     Define macro WAIT_NOHANG in terms of wait3.
  2938.     (child_handler): #ifdef on WAIT_NOHANG, not HAVE_SYS_WAIT || !USG.
  2939.     Use WAIT_NOHANG macro instead of wait3.
  2940.  
  2941.     * file.h (struct file.command_state): Remove unused elt.
  2942.  
  2943. Wed Dec 26 18:10:26 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2944.  
  2945.     * commands.c (set_file_variables): If FILE got its commands from
  2946.     .DEFAULT, make $< == $@ (4.3 BSD/POSIX.2d11 compat).
  2947.  
  2948. Mon Dec 24 17:36:27 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2949.  
  2950.     * default.c (default_variables): Rename 2nd LINK.s defn to LINK.S.
  2951.  
  2952. Fri Dec 14 15:05:25 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2953.  
  2954.     * vpath.c (selective_vpath_search): Check for makefile-mentioned before
  2955.     checking for actual existence.  The old order loses if the containing
  2956.     directory doesn't exist (but a rule might make it).
  2957.  
  2958.     * make.h [__GNUC__]: Don't #define alloca if already #define'd.
  2959.  
  2960.     * rule.c (convert_to_pattern): Don't look at the target constructed for
  2961.     the empty rule when making the null-suffix rule.  Construct it over
  2962.     again, since the former may have been freed already.
  2963.  
  2964. Thu Dec 13 17:21:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2965.  
  2966.     * make.h [__GNU_LIBRARY__]: Include <unistd.h> to get random fn decls.
  2967.  
  2968. Wed Dec 12 17:12:59 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2969.  
  2970.     * make.h, arscan.c, glob.c: Only include <memory.h> #ifdef USG.
  2971.  
  2972.     * variable.c (define_variable_in_set): Replace env_overrides check that
  2973.     wasn't really redundant (undoing Sep 28 change).  Add comment saying
  2974.     why this check is necessary.
  2975.  
  2976.     * job.c, main.c [DGUX]: Needs siglist like USG.
  2977.  
  2978. Mon Dec 11 01:19:29 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2979.  
  2980.     * default.c [M_XENIX]: For rules that are different for Xenix, use the
  2981.     generic Unix version #ifdef __GNUC__.
  2982.  
  2983.     * main.c [M_XENIX]: Use USGr3-style setvbuf call.
  2984.  
  2985.     * read.c (find_percent): Do backslash folding correctly, not leaving
  2986.     extra crud on the end of the string.
  2987.  
  2988. Sun Dec 10 21:48:36 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2989.  
  2990.     * job.c: Don't declare wait3 if it's #defined.
  2991.  
  2992.     * GNUmakefile, compatMakefile, make.texinfo: Change make-info
  2993.     to make.info.
  2994.  
  2995. Thu Dec  7 21:20:01 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2996.  
  2997.     * make.h [STDC_HEADERS || __GNU_LIBRARY__ || _POSIX_SOURCE]: Use
  2998.     ANSI <string.h> and names for str/mem functions.
  2999.     Use <stdlib.h> to declare misc fns rather than explicit decls.
  3000.     [_POSIX_SOURCE]: Don't declare kill (<signal.h> will).
  3001.     Include <sys/types.h> before <signal.h> because some braindead
  3002.     nonconformant 1003.1 implementation needs it.
  3003.     * misc.c: Don't declare malloc, realloc.  Do it in make.h.
  3004.     * arscan.c, glob.c: Use sequence for string fns from make.h verbatim.
  3005.     * make.h (S_ISDIR, S_ISREG): Declare if necessary.
  3006.     * commands.c (delete_child_targets), job.c (search_path), read.c
  3007.     (construct_include_path): Use S_ISfoo(m) instead of
  3008.     (m & S_IFMT) == S_IFfoo.
  3009.     * dir.c, glob.c [_POSIX_SOURCE]: Use dirent.
  3010.  
  3011. Wed Nov 29 22:53:32 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  3012.  
  3013.     * Version 3.59.
  3014.  
  3015. Tue Nov 28 16:00:04 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3016.  
  3017.     * arscan.c (ar_name_equal) [APOLLO]: Don't do `.o' hacking.  On Apollos
  3018.     the full file name is elsewhere, and there is no length restriction (or
  3019.     so I'm told).
  3020.  
  3021. Thu Nov 23 17:33:11 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  3022.  
  3023.     * load.c [hp300 && BSD] (LDAV_CVT): Define for this system.
  3024.  
  3025. Tue Nov 21 07:58:40 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  3026.  
  3027.     * read.c (record_files): Fix trivial bug with deciding to free storage
  3028.     for a file name.
  3029.  
  3030. Thu Nov 16 06:21:38 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  3031.  
  3032.     * compatMakefile ($(bindir)/make): Install it setgid kmem.
  3033.  
  3034. Thu Nov  1 16:12:55 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3035.  
  3036.     * GNUmakefile (make-*.tar.Z): Use `h' option to tar (dereference
  3037.     symlinks), to grab texinfo.tex from wherever it lives.
  3038.  
  3039. Tue Oct 30 16:15:20 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3040.  
  3041.     * Version 3.58.13.
  3042.  
  3043. Fri Oct 26 14:33:34 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3044.  
  3045.     * GNUmakefile: make-*.tar.Z: Include texinfo.tex.
  3046.  
  3047. Tue Oct 23 19:34:33 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3048.  
  3049.     * main.c (define_makeflags): When there are no flags to write, make
  3050.     sure the array has two leading nulls, since `MAKEFLAGS' is defined from
  3051.     &flags[1].
  3052.  
  3053.     * main.c (default_keep_going_flag): New variable (constant one).
  3054.     (command_switches: -k, -S): Use above for default value.
  3055.     (define_makeflags): Only write flag/flag_off switches if they are on,
  3056.     and either there is no default value, or they are not the default.
  3057.  
  3058. Mon Oct 22 16:14:44 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3059.  
  3060.     * main.c (struct command_switch): New member `no_makefile'.
  3061.     (command_switches: -n, -q, -t): Set no_makefile == 1.
  3062.     (define_makeflags): Take new arg MAKEFILE: if nonzero, don't use
  3063.     options whose `no_makefile' flags are set.
  3064.     (main): Call define_makeflags with MAKEFILE==1 before remaking
  3065.     makefiles, and again with MAKEFILE==0 before remaking goals.
  3066.  
  3067. Tue Oct  2 17:16:45 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  3068.  
  3069.     * Version 3.58.12.
  3070.  
  3071. Mon Oct  1 15:43:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3072.  
  3073.     * arscan.c [HPUX]: Use PORTAR==1 format.
  3074.  
  3075. Sat Sep 29 16:38:05 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3076.  
  3077.     * make.h, remake.c, arscan.c: Don't declare `open'.
  3078.  
  3079. Fri Sep 28 04:46:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3080.  
  3081.     * variable.c (define_variable_in_set): Remove redundant -e check.
  3082.  
  3083. Wed Sep 26 00:28:59 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  3084.  
  3085.     * job.c (start_job): Set RECURSIVE from the right elt of
  3086.     CHILD->file->cmds->lines_recurse.
  3087.  
  3088.     * commands.c (chop_commands): Don't botch the line count for allocating
  3089.     CMDS->lines_recurse.
  3090.  
  3091.     * Version 3.58.11.
  3092.  
  3093.     * job.c (start_job): Don't always increment CHILD->command_line!  Only
  3094.     do it when CHILD->command_ptr has run out!  (Dumb bug.  Sigh.)
  3095.  
  3096. Thu Sep 20 02:18:51 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  3097.  
  3098.     * GNUmakefile [ARCH]: Give explicit rule for remote.{c,dep} to use
  3099.     variable `REMOTE' for more flags.
  3100.     ($(prog)): Link in $(LOADLIBES).
  3101.  
  3102. Wed Sep 19 02:30:36 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3103.  
  3104.     * commands.h (struct commands): New member `ncommand_lines', the number
  3105.     of elts in `command_lines' et al.
  3106.     * commands.c (chop_commands): Set `ncommand_lines' elt of CMDS, and
  3107.     don't put a nil pointer at the end of `command_lines'.
  3108.     * job.h (struct child): New member `command_lines' to hold
  3109.     variable-expanded command lines.
  3110.     * job.c (new_job): Store expanded command lines in `command_lines'
  3111.     member of new child.  Don't clobber FILE->cmds.
  3112.     (start_job): Use CHILD->command_lines in place of
  3113.     CHILD->file->cmds->command_lines.
  3114.  
  3115.     * variable.h, variable.c, job.c, expand.c: Undo yesterday's change,
  3116.     which is no longer necessary since we have cleverly avoided the issue.
  3117.  
  3118.     * job.c (start_job): Don't variable-expand each command line.
  3119.     (new_job): Do them all here, storing the expansions in the array.
  3120.  
  3121. Tue Sep 18 01:23:13 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3122.  
  3123.     * variable.h (struct variable): Remove `expanding' member.
  3124.     * variable.c (define_variable_in_set): Don't initialize it.
  3125.     * expand.c (struct variable_expanding): New type, a linked list
  3126.     containing `struct variable' pointers.
  3127.     (variables_expanding): New variable, the chain of variables currently
  3128.     being expanded.
  3129.     (recursively_expand): Don't test and set `expanding' member.
  3130.     Instead, run through the `variables_expanding' chain looking for a link
  3131.     referring to V to find self-reference.  Add a new link to the chain,
  3132.     describing V, before recursive expansion, and pop it off afterward.
  3133.     * job.c (child_handler): Save `variables_expanding' and clear it before
  3134.     calling start_job, and restore it afterward.  This avoids major lossage
  3135.     when the SIGCHLD comes in the middle of variable expansion.
  3136.  
  3137. Mon Sep 17 14:46:26 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  3138.  
  3139.     * job.c, commands.c: Don't define sigmask.
  3140.     * make.h: Put it here instead.
  3141.  
  3142.     * variable.c (target_environment): If `.NOEXPORT' was specified as a
  3143.     target, only export command-line and environment variables, and
  3144.     file-origin variables that were in the original environment.
  3145.  
  3146.     * make.man: Add missing ?roff control for `-I' option description.
  3147.  
  3148. Thu Sep 13 14:10:02 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3149.  
  3150.     * load.c [UMAX]: Move #include <sys/sysdefs.h> to [not UMAX_43].
  3151.  
  3152. Wed Sep 12 15:10:15 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3153.  
  3154.     * expand.c (recursively_expand): Don't use `reading_filename' and
  3155.     `reading_lineno_ptr' if they're nil.
  3156.  
  3157. Thu Aug 30 17:32:50 1990  Roland McGrath  (roland at geech)
  3158.  
  3159.     * Version 3.58.10.
  3160.  
  3161. Tue Aug 28 04:06:29 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3162.  
  3163.     * job.c [USG] (unknown_children_possible): New variable, set nonzero
  3164.     when it's possible for children not in the `children' chain to die.
  3165.     (block_signals) [USG]: Set it.
  3166.     (unblock_signals) [USG]: Clear it.
  3167.     (child_handler) [USG]: Don't complain about unknown children if
  3168.     `unknown_children_possible' is set.
  3169.  
  3170.     * read.c (do_define): Make sure there's enough space for the newline,
  3171.     so we don't write off the end of allocated space.
  3172.  
  3173.     * arscan.c (ar_name_equal): Fixed to work when MEM is AR_NAMELEN-1 but
  3174.     NAME is not the same length.
  3175.  
  3176. Sat Aug 25 16:17:14 1990  Roland McGrath  (roland at geech)
  3177.  
  3178.     * job.c (construct_command_argv_internal): Use a static char array for
  3179.     a constant, since old C has no auto aggregate initializers.
  3180.  
  3181. Thu Aug 23 16:11:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3182.  
  3183.     * job.c (search_path): If PATH is nil or "" use a default path.
  3184.  
  3185. Wed Aug 22 01:05:32 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  3186.  
  3187.     * Version 3.58.9.
  3188.  
  3189.     * job.c (exec_command): Don't take PATH and SHELL args.  Get them from
  3190.     ENVP.
  3191.     (child_execute_job): Don't take FILE arg, and don't pass path and shell
  3192.     to exec_command.
  3193.     (start_job): Don't pass FILE arg to child_execute_job.
  3194.     * function.c (expand_function: `shell'): Ditto.
  3195.     * main.c (main): Don't pass path and shell to exec_command.
  3196.  
  3197. Fri Aug 17 23:17:27 1990  Roland McGrath  (roland at geech)
  3198.  
  3199.     * job.c (construct_command_argv_internal): New fn broken out of
  3200.     construct_command_argv.  Takes strings SHELL and IFS instead of doing
  3201.     variable expansion for them.  Recurse to make an argv for SHELL,
  3202.     passing SHELL==0.  When SHELL==0, don't recurse for shell argv; make a
  3203.     simple one using /bin/sh.
  3204.     (construct_command_argv): Do the variable expansions and call above.
  3205.  
  3206. Thu Aug 16 19:03:14 1990  Roland McGrath  (roland at geech)
  3207.  
  3208.     * read.c (multi_glob): For ~USER/FILE, if USER isn't found, don't
  3209.     change the file name at all.
  3210.  
  3211. Tue Aug  7 18:33:28 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3212.  
  3213.     * function.c (expand_function: `suffix'/`notdir'): Don't kill the last
  3214.     space if we never wrote one.
  3215.  
  3216.     * function.c (expand_function: `suffix'): Retain the dot, like the
  3217.     documentation says.
  3218.  
  3219. Mon Aug  6 14:35:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3220.  
  3221.     * Version 3.58.8.
  3222.  
  3223.     * main.c (decode_switches): For positive_int and floating cases, move
  3224.     SW past the arg (and don't set it to ""), so another switch can follow.
  3225.  
  3226. Fri Aug  3 00:43:15 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3227.  
  3228.     * job.c (child_execute_job): Use unblock_signals instead of
  3229.     push_signals_blocked_p (0).
  3230.  
  3231.     * main.c (fatal_signal_mask): New variable, mask of signals caught with
  3232.     fatal_error_signal.
  3233.     (main): Set it.
  3234.     * job.c ({block,unblock}_children): Renamed to {block,unblock}_signals.
  3235.     Block/unblock both child signal and signals in fatal_signal_mask.
  3236.     (children_blocked_p_{stack,max,depth}, {push,pop}_children_blocked_p):
  3237.     Renamed from children to signals.  Use {block,unblock}_signals instead
  3238.     of {block,unblock}_children.
  3239.     * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
  3240.     child_execute_job, main, log_working_directory), function.c
  3241.     (expand_function: `shell'), job.h: Rename {push,pop}_children_blocked_p
  3242.     to {push,pop}_signals_blocked_p.
  3243.     * job.c (child_handler): Call {block,unblock}_signals instead of just
  3244.     {block,unblock}_remote_children.  We need to block the fatal signals.
  3245.  
  3246. Thu Aug  2 22:41:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3247.  
  3248.     * main.c, function.c: Fixed typos in comments.
  3249.  
  3250.     * file.c (print_file_data_base): Fix computation of avg files/bucket.
  3251.  
  3252. Tue Jul 31 22:11:14 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3253.  
  3254.     * Version 3.58.7.
  3255.  
  3256. Wed Jul 25 16:32:38 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3257.  
  3258.     * arscan.c (ar_name_equal): Fixed to really do it right.
  3259.     (ar_member_pos): Fixed order of args.
  3260.     * ar.c (ar_member_date_1): Ditto.
  3261.  
  3262. Fri Jul 20 15:30:26 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3263.  
  3264.     * arscan.c (ar_name_equal): Rewritten.  Accounts for a possible
  3265.     trailing slash in MEM.
  3266.  
  3267.     * remake.c (f_mtime): Keep track of whether ARNAME is used and free it
  3268.     if not.  Also free MEMNAME.
  3269.     * ar.c (ar_member_date, ar_touch): Ditto.
  3270.  
  3271.     * arscan.c (arscan) [HPUX or hpux]: Treat same as USGr3 PORTAR==1.
  3272.  
  3273.     * make.h: If NSIG is not defined, but _NSIG is, #define NSIG _NSIG.
  3274.  
  3275.     * compatMakefile: Don't use $* in explicit rules.
  3276.  
  3277.     * default.c (default_variables: "PREPROCESS.S"): Include $(CPPFLAGS).
  3278.  
  3279.     * remake.c (f_mtime): If FILE is an ar ref, get the member modtime.
  3280.  
  3281.     * function.c (string_glob): Terminate the string properly when it's
  3282.     empty.
  3283.  
  3284. Wed Jul 18 11:26:56 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3285.  
  3286.     * Version 3.58.6.
  3287.  
  3288.     * commands.c (set_file_variables): Fixed computation for ^F/?F elt len.
  3289.  
  3290. Sat Jul 14 13:41:24 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3291.  
  3292.     * job.c (construct_command_argv): Always use
  3293.     allocated_variable_expand_for_file instead of variable_expand_for_file
  3294.     because we might be called from inside a variable expansion (for the
  3295.     `shell' function).
  3296.  
  3297.     * function.c (expand_function: `shell'): Free the arglist's storage
  3298.     correctly.  construct_command_argv only allocates ARGV and ARGV[0].
  3299.  
  3300.     * job.c (children_blocked_p_idx): Renamed to children_blocked_p_depth.
  3301.     (push_children_blocked_p, pop_children_blocked_p): Use ..._depth
  3302.     instead of ..._idx, and do it right!
  3303.  
  3304. Wed Jul 11 15:35:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3305.  
  3306.     * make.h (SIGNAL): New macro to replace `signal' calls.  Does arg and
  3307.     ret value casts to (void *) #ifdef __STDC__ to avoid conflicts btwn
  3308.     ANSI and BSD `signal' and handler types.
  3309.     * main.c (main), job.c (child_handler): Use it.
  3310.  
  3311. Fri Jul  6 00:00:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3312.  
  3313.     * ar.c (ar_member_date, ar_touch): Pass 2nd arg to f_mtime.
  3314.  
  3315.     * read.c (read_makefile): Search the include path for MAKEFILES
  3316.     variable makefiles (TYPE == 1), like it says in the manual.
  3317.  
  3318.     * file.h (struct file), main.c (struct command_switch): Remove trailing
  3319.     commas from enums.
  3320.  
  3321.     * commands.c (execute_file_commands): Remove unused variables.
  3322.     * commands.h: Declare chop_commands.
  3323.     * make.h: Declare uniquize_deps.
  3324.     * main.c (main): Remove unused variable.
  3325.     (decode_switches): Remove unused label.
  3326.     * remake.c: Include "ar.h" for ar_parse_name decl.
  3327.     * implicit.c (try_implicit_rule): Remove unused variable.
  3328.     * function.c (expand_function: `shell'): Declare fork, pipe.
  3329.     * ar.c: Declare ar_name_equal.
  3330.  
  3331.     * GNUmakefile: If using gcc, add warning flags to CFLAGS.
  3332.  
  3333.     * remake.c: Remove decl of ar_member_date, since it's done in make.h.
  3334.  
  3335.     * remake.c (f_mtime): For ar refs, allow the archive to be found via
  3336.     VPATH search if we're searching, and change the ar ref accordingly.
  3337.  
  3338.     * ar.c (ar_parse_name): New global fn to parse archive-member
  3339.     references into the archive and member names.
  3340.     (ar_member_date, ar_touch): Use it.
  3341.     * make.h: Declare it.
  3342.  
  3343.     * remake.c (f_mtime): After doing rename_file, do check_renamed instead
  3344.     of assuming rename_file will always set FILE->renamed (which it won't).
  3345.  
  3346.     * vpath.c (selective_vpath_search): Only accept prospective files that
  3347.     don't actually exist yet are mentioned in a makefile if the file we are
  3348.     searching for isn't a target.
  3349.  
  3350. Wed Jul  4 04:11:55 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3351.  
  3352.     * remake.c (update_goal_chain): Do check_renamed after calling
  3353.     file_mtime.
  3354.     (check_dep): Ditto after update_file.
  3355.  
  3356.     * file.c (rename_file): Prettied up long message for merging cmds.
  3357.  
  3358.     * remake.c (update_file_1): Get each dep file's modtime, and allow for
  3359.     it being renamed, before checking for a circular dep, since a renaming
  3360.     may have introduced one.
  3361.  
  3362. Tue Jul  3 18:15:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3363.  
  3364.     * ar.c (ar_touch): Don't free ARNAME since enter_file holds onto the
  3365.     storage.
  3366.  
  3367.     * function.c (string_glob): Don't leave a trailing space.
  3368.  
  3369.     * read.c (do_define): Allow leading whitespace before `endef'.
  3370.  
  3371. Mon Jul  2 14:10:16 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3372.  
  3373.     * implicit.c (pattern_search): No longer take NAME arg.  Instead take
  3374.     ARCHIVE flag.  If ARCHIVE is nonzero, FILE->name is of the form
  3375.     "LIB(MEMBER)"; rule for "(MEMBER)" is searched for, and LASTSLASH is
  3376.     set to nil.  Since NAME was only non-nil when it was the archive member
  3377.     name passed by try_implicit_rule, this change easily allows turning off
  3378.     LASTSLASH checking for archive members without excessive kludgery.
  3379.     (try_implicit_rule): Pass ARCHIVE flag instead of file name.
  3380.  
  3381.     * Version 3.58.5.
  3382.  
  3383.     * commands./c (set_file_variables): Don't kill last char of $(^D) elts.
  3384.  
  3385. Sat Jun 30 00:53:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3386.  
  3387.     * ar.c (ar_member_date): Don't free ARNAME since enter_file holds onto
  3388.     the storage.
  3389.  
  3390.     * arscan.c (ar_scan) [sun386 && PORTAR == 1]: Treat like USGr3.
  3391.  
  3392. Wed Jun 27 14:38:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3393.  
  3394.     * main.c (main): Put a newline on the debugging message when deciding
  3395.     not to remake a makefile to avoid a possible loop.
  3396.     Only decide not to remake makefiles that have commands (as well as
  3397.     being targets and having no deps).
  3398.  
  3399. Fri Jun 22 12:35:37 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3400.  
  3401.     * default.c (default_variables): Define `LINK.s' and `LINK.S'.
  3402.     (default_suffix_rules): Define .S.o rule.
  3403.  
  3404.     * job.c (construct_command_argv): If we decide to go the slow route,
  3405.     free all storage for the chopped args.
  3406.     (start_job): Free the argument list's storage correctly.
  3407.     construct_command_argv only allocates ARGV and ARGV[0].
  3408.  
  3409. Tue Jun 19 18:27:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3410.  
  3411.     * Version 3.58.4.
  3412.  
  3413. Fri Jun 15 21:12:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3414.  
  3415.     * glob.c: New version from ai-lab which doesn't do [^abc].
  3416.  
  3417. Thu Jun  7 00:30:46 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3418.  
  3419.     * dir.c: Copied dirent vs direct et al mess from glob.c.
  3420.  
  3421.     * glob.c: Replaced with updated version from djm.
  3422.     * glob.c: Check macro DIRENT instead of _POSIX_SOURCE for <dirent.h>.
  3423.     __GNU_LIBRARY__ implies DIRENT and STDC_HEADERS.
  3424.  
  3425. Thu May 31 22:19:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3426.  
  3427.     * vpath.c (vpath_search): Don't stop the loop if a pattern matches but
  3428.     the search fails.  All matching patterns have their paths searched
  3429.     (like it says in the manual).
  3430.  
  3431.     * make.texinfo (Rules: Directory Search: Selective Search): Say that
  3432.     multiple `vpath' directives with the same pattern DO accumulate, not
  3433.     supersede earlier ones.
  3434.  
  3435.     * vpath.c (print_vpath_data_base): Increment the count of vpaths on
  3436.     each loop iteration, rather than letting it stay zero.
  3437.  
  3438.     * Version 3.58.3.
  3439.  
  3440.     * job.c (block_children, unblock_children): Made static.
  3441.     (push_children_blocked_p, pop_children_blocked_p): New functions to
  3442.     push and pop whether children are blocked or not.
  3443.     * job.h: Declare push_children_blocked_p, pop_children_blocked_p and
  3444.     not block_children, unblock_children.
  3445.     * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
  3446.     child_execute_job), main.c (main, log_working_directory): Use sequences
  3447.     of push_children_blocked_p (1) and pop_children_blocked_p () instead of
  3448.     explicitly blocking and unblocking children.
  3449.     * function.c (expand_function: `shell'): Don't unblock children.  The
  3450.     push-pop sequence in wait_for_children makes it unnecessary.
  3451.  
  3452. Tue May 29 21:30:00 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3453.  
  3454.     * read.c (do_define): Don't include the last newline in the definition.
  3455.  
  3456.     * function.c (expand_function: `shell'): Call construct_command_argv
  3457.     before forking and don't fork if it returns nil.  Free the argument
  3458.     list's storage before finishing.
  3459.  
  3460.     * job.c (start_job): Free the storage for the child's argument list
  3461.     in the parent side of the fork after the child has been spawned.
  3462.  
  3463.     * job.c (start_job): If construct_command_argv returns nil, go to the
  3464.     next command line.
  3465.  
  3466.     * job.c (construct_command_argv): Use the shell if the command contains
  3467.     an unterminated quote.
  3468.  
  3469. Wed May 23 19:54:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3470.  
  3471.     * Version 3.58.2.
  3472.  
  3473.     * read.c (read_makefile): Parse "override define" correctly.
  3474.  
  3475. Thu May 17 15:25:58 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3476.  
  3477.     * arscan.c [USG]: Don't declare memcpy and memcmp.  <memory.h> should
  3478.     do this anyway (and lack of declarations is harmless).
  3479.  
  3480.     * remote-customs.c: Renamed to remote-cstms.c for System V.
  3481.     * remote.c [CUSTOMS]: Changed accordingly.
  3482.  
  3483. Sun May 13 14:38:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3484.  
  3485.     * GNUmakefile: Use same cmds for doc tar.Z as for dist tar.Z (so the
  3486.     contents go in make-N.NN).
  3487.  
  3488. Thu Apr 26 19:33:25 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3489.  
  3490.     * Version 3.58.1.
  3491.  
  3492. Wed Apr 25 20:27:52 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3493.  
  3494.     * job.c (init_siglist): Don't do SIGUSR1 and SIGUSR2 if they are the
  3495.     same as SIGIO and SIGURG (true on Cray).
  3496.  
  3497. Tue Apr 24 20:26:41 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3498.  
  3499.     * arscan.c (ar_scan): Do behavior for PORTAR == 1 and USGr3 also
  3500.     #ifdef APOLLO.
  3501.  
  3502. Wed Apr 11 10:00:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3503.  
  3504.     * job.c (exec_command): Set the effective GID to the real GID.  Somehow
  3505.     this code got lost.
  3506.  
  3507.     * implicit.c (pattern_search): Use the right index variable when
  3508.     seeing if we need to expand FILE->also_make.
  3509.  
  3510. Sun Mar  4 09:18:58 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3511.  
  3512.     * Version 3.58.0.
  3513.  
  3514.     * remake.c (remake_file): Treat non-targets without commands under -t
  3515.     the same as anything else without commands.
  3516.  
  3517. Sat Feb 24 17:46:04 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3518.  
  3519.     * default.c (default_variables: PREPROCESS.S): Removed $< from defn.
  3520.  
  3521.     * main.c (main): Ignore arguments that are the empty string, rather
  3522.     than feeding them to enter_file and barfing therein.
  3523.  
  3524. Wed Feb 14 16:28:37 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3525.  
  3526.     * main.c (main): Call construct_include_path after doing chdirs.
  3527.  
  3528. Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3529.  
  3530.     * Version 3.58.
  3531.  
  3532. Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3533.  
  3534.     * Version 3.57.7.
  3535.  
  3536.     * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
  3537.     working files are never overwritten by the default rule.
  3538.  
  3539. Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3540.  
  3541.     * rule.c (count_implicit_rule_limits): Redid loop control to not run
  3542.     twice on freed rules.
  3543.  
  3544.     * GNUmakefile: Made `.dep' files be architecture-specific too.
  3545.  
  3546.     * main.c (main, log_working_directory) [USG]: Block children around
  3547.     calls to `getwd' (actually `getcwd' on USG), because that function
  3548.     sometimes spawns a child running /bin/pwd on USG.
  3549.  
  3550. Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3551.  
  3552.     * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
  3553.  
  3554. Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3555.  
  3556.     * make.man: Fixed repeated word.
  3557.  
  3558.     * make.texinfo (Missing): Reworded a buggy sentence.
  3559.  
  3560. Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3561.  
  3562.     * main.c (print_version): Added 1990 to copyright notice.
  3563.  
  3564.     * Version 3.57.6.
  3565.  
  3566. Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3567.  
  3568.     * file.c (rename_file): Don't free the storage for the old name, since
  3569.     it might not have been malloc'd.
  3570.  
  3571.     * job.c (construct_command_argv): Call
  3572.     allocated_variable_expand_for_file instead of variable_expand_for_file
  3573.     to expand `$(SHELL)'.
  3574.  
  3575.     * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
  3576.     to roland@prep.ai.mit.edu.
  3577.  
  3578. Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3579.  
  3580.     * Version 3.57.5.
  3581.  
  3582. Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3583.  
  3584.     * job.c (start_job): Only call wait_to_start_job for the first command
  3585.     line in each sequence.
  3586.  
  3587. Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3588.  
  3589.     * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
  3590.     0, not > 1.
  3591.  
  3592.     * job.c (search_path): Don't return a pointer to local storage.
  3593.     Allocate data space for the pathname instead.
  3594.  
  3595.     * function.c (expand_function: `shell'): Don't write garbage if the
  3596.     child wrote no output.
  3597.  
  3598. Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3599.  
  3600.     * Version 3.57.4.
  3601.  
  3602.     * file.h (struct file): New member `renamed', a `struct file *' that is
  3603.     the place this file has been renamed to (or nil).
  3604.     (check_renamed): Macro to check for a file having been renamed.
  3605.     Dereferences the renaming and sets the given variable.
  3606.     * file.c (rename_file): Completely rewritten.  Renames in place if
  3607.     possible, or moves FILE to a different hash bucket if there is no
  3608.     existing file with the new name.  If there is an existing file with the
  3609.     new name, FILE is merged into it and FILE->renamed is set to point to
  3610.     it.
  3611.     * variable.c (merge_variable_sets): New fn to merge two variable sets.
  3612.     (merge_variable_set_lists): New fn to merge two variable set lists.
  3613.     * variable.h: Declare merge_variable_set_lists.
  3614.     * remake.c (update_file_1, check_dep): Run `check_renamed' after
  3615.     calling file_mtime, check_dep.
  3616.     (update_file): Same after update_file_1.
  3617.     (update_goal_chain, update_file_1, check_dep): Same after update_file.
  3618.  
  3619.     * read.c (uniquize_deps): New fn, broken out of record_files, to remove
  3620.     duplicate deps from a chain.
  3621.     (record_files): Use it.
  3622.     * implicit.c (pattern_search): Use uniquize_deps.
  3623.  
  3624.     * file.h (file_mtime_1): New macro, like file_mtime, but take second
  3625.     arg, passed to f_mtime.
  3626.     (file_mtime): Implement as file_mtime_1 (file, 1).
  3627.     (file_mtime_no_search): New macro: file_mtime (file, 0).
  3628.     * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
  3629.     searching if it is nonzero.
  3630.     * main.c (main): Use file_mtime_no_search for makefiles.
  3631.     * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
  3632.  
  3633.     * main.c (printed_version): New variable, init'd to zero.
  3634.     (print_version): Set it to nonzero before returning.
  3635.     (die): If -v and !printed_version, call print_version before clean up
  3636.     and death.
  3637.  
  3638.     * main.c (log_working_directory): Keep track of whether or not the
  3639.     "Entering" message has been printed, and return without printing the
  3640.     "Leaving" message if not.
  3641.  
  3642.     * main.c (decode_switches): Don't complain about missing args before
  3643.     checking for a noarg_value elt in the command_switch structure.
  3644.  
  3645. Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3646.  
  3647.     * make.texinfo (Commands: Recursion: Options/Recursion): Document
  3648.     special case of -j.
  3649.  
  3650.     * make.texinfo, main.c, job.c: Changed copyright notices to include
  3651.     1990.
  3652.  
  3653.     * make.texinfo (Top): Fixed introductory paragraph, which said that
  3654.     `make' itself (instead of the manual) has various chapters.
  3655.     (Variables: Advanced: Substitution Refs): When pxref'ing about
  3656.     `patsubst', use node `Text Functions', not `Functions'.
  3657.     Add an xref about `patsubst' after description of $(var:a%b=c%d).
  3658.     (Functions: Syntax of Functions): Explain why mixing delimiters in
  3659.     function/var refs is unwise.  Clarify fn arg evaluation order.
  3660.     (Options): Reworded sentence about `-e'.
  3661.     (Implicit: Implicit Variables): Don't say `RM' is unused.
  3662.     Say the dflt values for the flag vars is empty unless otherwise noted,
  3663.     since some have defaults.
  3664.     (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
  3665.     in first example.
  3666.     (Implicit: Last Resort): Don't say the .DEFAULT example creates files
  3667.     "silently".  It's automatic, but not silent.
  3668.     (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
  3669.     for item 5.1.
  3670.     (Archives: Archive Update): Added missing `next' pointer.
  3671.     (Archives: Archive Symbols): Note that GNU `ar' deals with this
  3672.     automatically.
  3673.  
  3674.     * job.c (search_path): New fn, to search for an executable file in a
  3675.     search path (broken out of exec_command).
  3676.     (exec_command): Take fourth arg, the shell program to use (if
  3677.     necessary).  Use search_path for the program, and the shell program.
  3678.     Pass args "file args ..." to shell program (with no -c), where FILE is
  3679.     the full pathname of the program (script) to be run.
  3680.     (child_execute_job): Pass shell program to exec_command.
  3681.     * main.c (main): Ditto.
  3682.  
  3683.     * main.c (main): Don't write a message if exec_command returns, because
  3684.     it will never return.
  3685.  
  3686. Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3687.  
  3688.     * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
  3689.     $(CFLAGS).
  3690.  
  3691. Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3692.  
  3693.     * job.c (new_job): If start_job set the child's `command_state' to
  3694.     `cs_finished', call notice_finished_file.
  3695.  
  3696. Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3697.  
  3698.     * Version 3.57.3.
  3699.  
  3700. Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3701.  
  3702.     * rule.c (convert_to_pattern): Accept files with dependencies as
  3703.     suffix rules.
  3704.  
  3705. Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3706.  
  3707.     * Version 3.57.2.
  3708.  
  3709.     * function.c (expand_function: `shell'): Don't clobber BUFFER and then
  3710.     try to free it.
  3711.  
  3712.     * remake.c (update_file_1): Took code to force remake of nonexistent
  3713.     deps out of #if 0, and changed the test to nonexistent non-intermediate
  3714.     deps.  In version 4, I think removing this test completely will
  3715.     implement the new feature that if a: b and b: c and c is newer than a,
  3716.     b need not be remade.
  3717.  
  3718. Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3719.  
  3720.     * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
  3721.     names so that using VPATH works.
  3722.  
  3723. Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3724.  
  3725.     * Version 3.57.1.
  3726.  
  3727. Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3728.  
  3729.     * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
  3730.     being updated.  (The exact opposite test was here before; why???)
  3731.     (update_file_1): Set a dep's `changed' member after updating it if it
  3732.     is phony and has commands (because they will then always be executed).
  3733.  
  3734. Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3735.  
  3736.     * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
  3737.     `inq_stats' call.
  3738.     * compatMakefile (LOAD_AVG): Document UMAX_43.
  3739.  
  3740.     * Version 3.57.0.
  3741.  
  3742.     * commands.c (chop_commands): New function to chop commands into lines.
  3743.     * job.c (new_job): Break that code out, and call chop_commands.
  3744.     * remake.c (remake_file): Call chop_commands before looking at
  3745.     FILE->cmds->any_recurse.
  3746.  
  3747.     * make.texinfo (Running: Goals): Don't say that the default target
  3748.     won't be taken from an included makefile.
  3749.  
  3750.     * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
  3751.     doesn't exist.
  3752.  
  3753. Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3754.  
  3755.     * Version 3.57.
  3756.  
  3757.     * variable.c (try_variable_definition): Don't calculate useless value.
  3758.  
  3759.     * main.c (define_makeflags): Fixed -j propagation.
  3760.  
  3761.     * commands.c (execute_file_commands): Removed unused variable.
  3762.  
  3763. Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3764.  
  3765.     * commands.c (execute_file_commands): If the commands are empty, call
  3766.     notice_finished_file before returning.
  3767.  
  3768. Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3769.  
  3770.     * remake.c (update_file_1): Don't always update a target that has no
  3771.     deps.  Only do this for double-colon targets.
  3772.  
  3773. Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3774.  
  3775.     * main.c (main) [hpux]: hpux == HPUX.
  3776.     * compatMakefile (defines): Document that HPUX should be defined.
  3777.  
  3778. Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3779.  
  3780.     * Version 3.56.8.
  3781.  
  3782.     * job.c (exec_command): Fixed what mode bits are checked.
  3783.  
  3784.     * remake.c (update_file_1): "No cmds and no deps actually changed"
  3785.     loses if ! FILE->is_target.
  3786.  
  3787.     * make.texinfo (Variables: Setting): Don't say that spaces after a
  3788.     variable definition are ignored (since they aren't).
  3789.  
  3790. Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3791.  
  3792.     * Version 3.56.7.
  3793.  
  3794.     * remake.c (update_file_1): If, after being updated, any dependency
  3795.     does not exist, remake the target.
  3796.  
  3797.     * remake.c (update_file_1): Always update if FILE has commands but no
  3798.     deps.
  3799.  
  3800.     * commands.c (execute_file_commands): If we return early because there
  3801.     are no commands, set FILE->updated.
  3802.  
  3803. Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3804.  
  3805.     * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
  3806.     `struct ar_hdr' members that are int or long int on Xenix.
  3807.  
  3808. Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3809.  
  3810.     * arscan.c (ar_scan): Cosmetic clean ups.
  3811.     (ar_name_equal): New function to compare names, handling truncated
  3812.     member names and special `.o' truncation.
  3813.     (ar_member_pos): Use ar_name_equal.
  3814.     * ar.c (ar_member_date_1): Use ar_name_equal.
  3815.  
  3816.     * Version 3.56.6.
  3817.  
  3818.     * file.h (struct file): Made `update_status' a `short int', and moved
  3819.     it before `command_state' so the bitfields can be packed better.
  3820.  
  3821.     * remake.c (files_remade): Made global.
  3822.     (notice_finished_file): Don't increment files_remade.
  3823.     * job.c (new_job): Do.
  3824.  
  3825.     * job.c (start_job): Don't return a value.  Always set
  3826.     CHILD->file->command_state to either cs_running or cs_finished.
  3827.     (new_job, child_handler): Don't expect start_job to return a value.
  3828.     Instead, look at the file's command_state.
  3829.  
  3830.     * commands.c (chop_commands): Merged into job.c (new_job).
  3831.     * commands.h: Don't declare chop_commands.
  3832.  
  3833.     * job.c (start_job): Made static.
  3834.     (new_job): New function to create a `struct child' and call start_job.
  3835.     (free_child): New function to free a `struct child'.
  3836.     (child_handler, new_job): Call it.
  3837.     * job.h: Don't declare start_job.  Do declare new_job.
  3838.     * commands.c (execute_file_commands): Call new_job.
  3839.  
  3840.     * commands.c (execute_file_commands): Don't set FILE->update_status if
  3841.     start_job fails.
  3842.  
  3843.     * function.c (expand_function): Don't use `reading_filename' and
  3844.     `reading_lineno_ptr' if they're nil.
  3845.  
  3846. Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3847.  
  3848.     * read.c (find_semicolon): New function to look for an unquoted ; not
  3849.     preceded by an unquoted # in a string.
  3850.     (read_makefile): Call it before expanding the line.  If it finds a ;,
  3851.     cut the line short there before expanding it.  If not, call it again
  3852.     after expanding.
  3853.  
  3854.     * commands.c (execute_file_commands): Don't check FILE->command_state.
  3855.     We won't get called unless it's cs_not_started.
  3856.  
  3857.     * read.c (read_makefile): Call collapse_line on the variable-expanded
  3858.     rule line after checking for ; and #.
  3859.  
  3860.     * job.c (start_job): When there are no more commands, always return 0.
  3861.     * commands.c (execute_file_commands): Don't put the new child in the
  3862.     `children' chain unless FILE->command_state is cs_running.
  3863.  
  3864.     * read.c (read_makefile): Rewrote ;-handling to only do it once (why
  3865.     did I do it twice??) and to check for a # before the ;.
  3866.  
  3867.     * job.c (start_job): Set CHILD->file->update_status to 0 when we run
  3868.     out of commands.  Set it to 1 before returning failure.
  3869.     (child_handler): Don't set C->file->update_status to 0 when start_job
  3870.     returns success and commands are not running.
  3871.  
  3872.     * read.c (read_makefile): If there is a # before the ; for commands,
  3873.     forget the ; and commands.
  3874.  
  3875. Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3876.  
  3877.     * job.c (child_execute_job): Pass -c to the shell.
  3878.  
  3879. Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3880.  
  3881.     * Version 3.56.5.
  3882.  
  3883.     * main.c (define_makeflags): Cleaned up to keep better track of dashes
  3884.     written, etc.
  3885.  
  3886.     * function.c (expand_function: `shell'): When converting newlines to
  3887.     spaces in output, search with `index' calls rather than a simple loop.
  3888.  
  3889.     * main.c (main): Make sure stdout is line-buffered.
  3890.  
  3891.     * main.c (decode_switches): Always check for missing switch arg.
  3892.  
  3893. Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3894.  
  3895.     * Version 3.56.4.
  3896.  
  3897. Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3898.  
  3899.     * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
  3900.     $%.
  3901.  
  3902.     * commands.c (set_file_variables): Include a trailing slash in the
  3903.     directory variables (@D, etc.).
  3904.  
  3905.     * job.c (child_handler): Call notice_finished_file after changing a
  3906.     child's state to `cs_finished'.
  3907.     * remake.c (update_file_1): Don't call notice_finished_file if
  3908.     FILE->command_state == cs_finished.
  3909.  
  3910. Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3911.  
  3912.     * Version 3.56.3.
  3913.  
  3914. Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3915.  
  3916.     * read.c (read_all_makefiles): When setting elements of MAKEFILES from
  3917.     the contents of read_makefiles, make sure we're using the right
  3918.     element.
  3919.  
  3920.     * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
  3921.  
  3922.     * Version 3.56.2.
  3923.  
  3924.     * remake.c (update_file_1): Return zero after calling remake_file if
  3925.     FILE->command_state != cs_finished.  Test update_status thoroughly.
  3926.  
  3927.     * commands.c (execute_file_commands): Don't call notice_finished_file.
  3928.  
  3929.     * remake.c (remake_file): Return immediately after calling
  3930.     execute_file_commands.
  3931.  
  3932. Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3933.  
  3934.     * Version 3.56.1 (alpha).
  3935.  
  3936.     * file.h (struct file): Made `update_status' not be a bitfield, since
  3937.     some broken compilers don't handle it right.
  3938.  
  3939.     * function.c (expand_function: `join'): Don't clobber the pointers and
  3940.     then try to free them.
  3941.  
  3942.     * job.c (exec_command): Fixed & vs = precedence problem.
  3943.  
  3944. Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3945.  
  3946.     * remake.c (update_file_1): Fixed typo in debugging output.
  3947.  
  3948.     * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
  3949.     after /usr/lib/libLIB.a.
  3950.  
  3951. Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3952.  
  3953.     * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
  3954.     comma.
  3955.  
  3956. Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3957.  
  3958.     * function.c (patsubst_function): If BY_WORD and the match is not a
  3959.     full word, update the text pointer correctly.
  3960.  
  3961.     * function.c (expand_function: `word'): Don't lose track of the second
  3962.     arg's expansion and free something else instead.
  3963.  
  3964. Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3965.  
  3966.     * Version 3.56.
  3967.  
  3968. Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3969.  
  3970.     * main.c (main): Make an array of the mtimes of the makefiles before
  3971.     updating them, and compare their file_mtimes against this later.  Don't
  3972.     re-exec if a makefile was successfully updated but didn't change.  If a
  3973.     makefile failed to be remade and no longer exists, die.  If a makefile
  3974.     failed to be remade, but changed anyway, re-exec.  If a makefile failed
  3975.     to be remade, but is unchanged, continue on.
  3976.  
  3977. Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3978.  
  3979.     * Version 3.55.6.
  3980.  
  3981.     * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
  3982.     CHECK_LASTSLASH flag values used to match each member of TRYRULES.
  3983.     When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
  3984.     part of FILENAME before LASTSLASH.
  3985.  
  3986. Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3987.  
  3988.     * dir.c (dir_file_exists_p): Check for FILENAME being nil before
  3989.     checking for it being "".
  3990.  
  3991.     * main.c (define_makeflags): Fixed test for whether a flag/flag_off
  3992.     option was non-default.  Also changed to generate a string that Unix
  3993.     Make will grok (except for FP/int values and new flags).
  3994.  
  3995.     * job.c (child_execute_job): Don't use the shell's -c option.
  3996.     Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
  3997.  
  3998. Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3999.  
  4000.     * Version 3.55.5.
  4001.  
  4002.     * read.c (parse_file_seq): Check the beginning of the file name for a
  4003.     `./', not the two chars after the end of the name (Q rather than P).
  4004.  
  4005.     * job.c (child_execute_job): Include all of ARGV in the arg list for
  4006.     the shell.
  4007.  
  4008.     * main.c (define_makeflags): Don't include floating and positive_int
  4009.     options in !PF.
  4010.  
  4011.     * job.c (exec_command): Set the effective gid to the real gid before
  4012.     execing.
  4013.  
  4014.     * job.c (child_execute_job): Don't clobber the arg list when execing
  4015.     the shell.
  4016.  
  4017. Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4018.  
  4019.     * main.c (define_makeflags): Moved all the checking inside the switch.
  4020.  
  4021.     * load.c [LDAV_BASED] (load_average): When we can't get the load
  4022.     average, return zero instead of running off the end.
  4023.  
  4024.     * file.c: Include variables.h.
  4025.     * job.c: Declare dup2 and {block,unblock}_remote_children.
  4026.     * file.h: Declare f_mtime.
  4027.     * job.c: Don't declare construct_command_argv, since job.h does.
  4028.     * function.c, main.c, load.c, remake.c: Include job.h.
  4029.     * load.c [LDAV_BASED] (load_average): Declare nlist.
  4030.     * variable.h: Declare print_file_variables.
  4031.     * job.c [!USG]: Don't declare sigsetmask.
  4032.     [!USG]: Declare getdtablesize.
  4033.     Don't declare load_average.  Do declare wait_to_start_job.
  4034.     Declare vfork, gete[gu]id, execve.
  4035.     * commands.c: Declare remote_kill, getpid.
  4036.     * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
  4037.     lseek, read.
  4038.     * make.h [not USG]: Declare sigsetmask.
  4039.     * job.h: Declare wait_for_children and {block,unblock}_children.
  4040.  
  4041.     * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
  4042.     directory.
  4043.     (find_directory): When we want to read in the whole directory, call
  4044.     dir_file_exists_p with nil instead of "".
  4045.  
  4046.     * file.h (struct file), job.h (struct child),
  4047.       variable.h (struct variable): Use bitfields for flags.
  4048.     * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
  4049.     :BITS, else empty.
  4050.     * compatMakefile (defines): Document ENUM_BITFIELDS.
  4051.  
  4052. Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4053.  
  4054.     * Version 3.55.4 (alpha).
  4055.  
  4056.     * GNUmakefile (dist): Depend on default and doc.
  4057.  
  4058.     * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
  4059.     NLIST_NAME_UNION, use n_un.n_name instead of n_name.
  4060.     * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
  4061.  
  4062.     * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
  4063.     already defined.
  4064.  
  4065. Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4066.  
  4067.     * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
  4068.     defined, define d_ino as d_fileno.
  4069.  
  4070. Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4071.  
  4072.     * job.c: Don't declare exec_command static.
  4073.  
  4074.     * make.texinfo (Name Index): Changed title to include directives.
  4075.  
  4076.     * Version 3.55.3 (alpha).
  4077.  
  4078.     * make.texinfo (Running: Options): Document -e.
  4079.  
  4080.     * main.c (main): Always give imported environment variables origin
  4081.     `o_env'.
  4082.     * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
  4083.     existing variable's origin, is `o_env', make it `o_env_override'.
  4084.  
  4085.     * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
  4086.     * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
  4087.  
  4088. Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4089.  
  4090.     * Version 3.55.2 (alpha).
  4091.  
  4092.     * variable.c (print_variable_set), rule.c (print_rule_data_base),
  4093.     file.c (print_file_data_base): If NO_FLOAT is defined, don't use
  4094.     floating-point for printing statistics.
  4095.     * compatMakefile (defines): Document NO_FLOAT.
  4096.  
  4097.     * make.h (HASH): New macro to add the hashing value of one char to a
  4098.     variable.c.
  4099.     * file.c (lookup_file, enter_file, rename_file): Use it.
  4100.     * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
  4101.     * variable.c (define_variable_in_set, lookup_variable): Same here.
  4102.  
  4103.     * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
  4104.     defined.
  4105.  
  4106.     * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
  4107.     (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
  4108.     (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
  4109.     * commands.c (set_file_variables), dir.c (file_exists_p),
  4110.     remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
  4111.     pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
  4112.     archive stuff.
  4113.  
  4114.     * commands.c (set_file_variables): Don't kill the last char of
  4115.     directory names in $([@*<%?^]D).
  4116.  
  4117. Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4118.  
  4119.     * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
  4120.     run co if the target exists.
  4121.  
  4122.     * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
  4123.  
  4124.     * glob.c: Misc minor cosmetic changes.
  4125.  
  4126. Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  4127.  
  4128.     * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
  4129.     to see if lseek fails.  On some systems, `avenrun' is at an offset >
  4130.     (2**31)-1, and lseek succeeds, returning a negative value.
  4131.  
  4132. Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  4133.  
  4134.     * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
  4135.     the passed rule was used, zero if not.
  4136.     (install_pattern_rule): Pay attention to the return from
  4137.     new_pattern_rule, and don't set the rule's `terminal' flag or give it
  4138.     commands unless it's used.
  4139.     (create_pattern_rule): Same idea.
  4140.  
  4141.     * dir.c (find_directory): Removed unused variable.
  4142.  
  4143.     * commands.c (execute_file_commands): Removed unused variable.
  4144.  
  4145.     * read.c (record_files): Don't use NAME after freeing it.
  4146.  
  4147. Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  4148.  
  4149.     * Version 3.55.1 (alpha).
  4150.  
  4151.     * function.c (string_glob): Don't add spaces after file names that
  4152.     aren't added.  (Also means don't add spaces without checking the size
  4153.     of the buffer.)
  4154.  
  4155.     * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
  4156.     deps from the chain.
  4157.     * main.c (main): Do it here, before calling update_goal_chain.
  4158.  
  4159.     * remake.c (update_goal_chain): When updating fails, change STATUS even
  4160.     if MAKEFILES is set.  Also stop remaking when updating fails if not
  4161.     under -k and MAKEFILES is not set.
  4162.  
  4163.     * remake.c (remake_file, update_file_1, notice_finished_file),
  4164.     commands.c (execute_file_commands), make.h, commands.h: The functions
  4165.     remake_file, notice_finished_file, and execute_file_commands no longer
  4166.     return values, and their callers no longer expect values returned.
  4167.  
  4168.     * remake.c (notice_finished_file): Don't set FILE's modtime to now if
  4169.     it is a non-target with no commands.
  4170.  
  4171. Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  4172.  
  4173.     * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
  4174.     replace it with the name stored in read_makefiles by read_makefile.
  4175.  
  4176.     * remake.c (update_file_1): Don't decide not to remake if FILE has no
  4177.     cmds and no deps actually changed if FILE doesn't have any deps.
  4178.  
  4179.     * file.c (remove_intermediate): Remove precious files that also have
  4180.     the `dontcare' flag set.
  4181.  
  4182.     * remake.c (update_file_1): Don't always remake if FILE has cmds but no
  4183.     deps; only if FILE is double-colon.  (I don't know why this should be
  4184.     done for double-colon targets, but that's what Unix make does.)
  4185.  
  4186.     * load.c [LDAV_BASED] (load_average): Write error messages if the
  4187.     various system calls fail.  Keep track of if we've failed before.
  4188.     The first time we fail, write a message saying -l won't be enforced.
  4189.     The first time we succeed after having failed, write a message saying
  4190.     -l will be enforced again.
  4191.  
  4192.     * remake.c [USG]: Don't #include <sys/file.h>
  4193.  
  4194.     * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
  4195.     else <sys/file.h> instead.
  4196.  
  4197.     * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
  4198.     #include <errno.h> and declaration of `errno'.
  4199.     [...] (dup2): Fixed so it won't always lose.
  4200.  
  4201.     * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
  4202.     move, the aux and index files, so the TeX run can use them.
  4203.  
  4204.     * compatMakefile: Remove redundant comment.
  4205.  
  4206.     * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
  4207.     <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
  4208.     more than the one in <a.out.h>.
  4209.     (load_average): Use the `n_un.n_name' field of the `struct nlist',
  4210.     since the <a.out.h> declaration uses the union.
  4211.  
  4212.     * main.c (main): For the temporary files made for stdin makefiles, set
  4213.     the `intermediate' and `dontcare' flags.
  4214.     * file.c (remove_intermediates): Don't print any messages for files
  4215.     whose `dontcare' flag is set.  (The only files that will be
  4216.     intermediate and `dontcare' will be the temporary files made for stdin
  4217.     makefiles.)
  4218.  
  4219.     * job.c (exec_command): Made global.
  4220.     * job.h: Declare it.
  4221.     * main.c (main): Use exec_command when re-execing.
  4222.  
  4223.     * make.h: Declare environ.
  4224.     * make.c: Don't.
  4225.  
  4226.     * job.c (child_execute_job): New function to perform everything done in
  4227.     the child side of a fork (for a job or `shell' function).
  4228.     (start_job): Call it.
  4229.     * job.h: Declare construct_command_argv and child_execute_job.
  4230.     * function.c (expand_function: `shell'): Use child_execute_job.
  4231.  
  4232. Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  4233.  
  4234.     * function.c (expand_function: `shell'): Remove a trailing newline
  4235.     instead of turning it into a space.
  4236.  
  4237.     * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
  4238.  
  4239.     * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
  4240.     separately and define all those that aren't defined.
  4241.  
  4242. Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4243.  
  4244.     * ar.c (ar_name): Return zero for `(foo)'.
  4245.  
  4246.     * Version 3.55.
  4247.  
  4248.     * make.texinfo (Rules: Multiple Targets): Make this node's `next'
  4249.     pointer point to `Static Pattern'.
  4250.     * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
  4251.     pointer point to `Makefile Names'.
  4252.  
  4253.     * make.1: Renamed to make.man.
  4254.     * compatMakefile: Define `mandir' and `manext'.
  4255.     (install): Depend on $(mandir)/make.$(manext).
  4256.     ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
  4257.     ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
  4258.  
  4259. Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4260.  
  4261.     * variable.c (target_environment): Allow variables that start with
  4262.     underscores.
  4263.  
  4264. Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4265.  
  4266.     * variable.c (target_environment): Reject variables that don't start
  4267.     with letters.
  4268.  
  4269. Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4270.  
  4271.     * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
  4272.     page) in the tar file.
  4273.  
  4274.     * variable.c (target_environment): Don't write variables with origin
  4275.     o_default (i.e., ones from default.c).
  4276.     * make.texinfo (Commands: Recursion: Variables/Recursion): Document
  4277.     that default variables are not put in the environment.
  4278.  
  4279.     * remake.c (update_file_1): Remake all targets with commands but no
  4280.     deps.
  4281.  
  4282. Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4283.  
  4284.     * remake.c (update_file_1): In the final loop, set the deps'
  4285.     `changed' members if they are newer than FILE.
  4286.  
  4287.     * remake.c (update_goal_chain): Under -d, print a message if we decide
  4288.     not to remake a makefile so as to avoid a possible infinite loop.
  4289.  
  4290. Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4291.  
  4292.     * remake.c (remake_file): Cleaned up.
  4293.  
  4294.     * commands.c (execute_file_commands): If the commands are empty, set
  4295.     FILE->update_status to zero before returning.
  4296.  
  4297.     * remake.c (notice_finished_file): Set `last_mtime' fields to zero
  4298.     instead of calling name_mtime; file_mtime will do that later if anybody
  4299.     cares.
  4300.  
  4301. Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4302.  
  4303.     * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
  4304.     `prev' pointer.
  4305.  
  4306.     * Version 3.54.9 (alpha).
  4307.  
  4308.     * make.texinfo: Fixed some @nodes.
  4309.  
  4310.     * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
  4311.     after running update_file.
  4312.  
  4313.     * remake.c (notice_finished_file): If FILE has no commands, pretend its
  4314.     modtime is now.
  4315.  
  4316.     * remake.c (update_file_1): In the loops that call update_file on the
  4317.     deps, compare modtimes before and after (unless deps are still being
  4318.     made) and set the deps' `changed' members.  Do not set the `changed'
  4319.     members in the loop that prints the newer/older debugging messages.
  4320.     * remake.c (update_file_1): If no deps changed and FILE has no
  4321.     commands, decide it doesn't need remaking.
  4322.  
  4323.     * remake.c (update_file_1): Print a debugging message if we take
  4324.     commands from default_file.
  4325.  
  4326.     * make.texinfo (Rules: Directory Search: Selective Search): Removed
  4327.     note about warning for `vpath' with a constant pathname, since it isn't
  4328.     warned about anymore.
  4329.  
  4330.     * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
  4331.     are targets and have no deps.
  4332.     * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
  4333.     will not be remade if they are targets but have no dependencies.
  4334.  
  4335. Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4336.  
  4337.     * remake.c (notice_finished_file): Increment files_remade for non-phony
  4338.     files if they didn't exist before (even if they still don't).
  4339.  
  4340.     * job.c: Include <errno.h> and declare errno.
  4341.  
  4342.     * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
  4343.     error), return instead of exiting the child process.
  4344.  
  4345.     * job.c (start_job): In the child side, if exec_command fails, try
  4346.     using the shell.
  4347.  
  4348.     * job.c (start_job): In the child side, call unblock_children instead
  4349.     of sigsetmask.
  4350.  
  4351.     * remake.c (notice_finished_file): Under -n or -q, always increment
  4352.     files_remade for non-phony files.
  4353.  
  4354.     * rule.c (intall_pattern_rule): Use find_percent.
  4355.  
  4356.     * vpath.c (vpath_search): Pass the `percent' members to
  4357.     pattern_matches.
  4358.  
  4359. Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4360.  
  4361.     * vpath.c (struct vpath): New member `percent', to hold a pointer into
  4362.     the pattern where the % is.
  4363.     (construct_vpath_list): Call find_percent on the pattern and set the
  4364.     new `percent' member.
  4365.     * read.c (read_makefile): Don't run find_percent on `vpath' directive
  4366.     patterns.
  4367.  
  4368.     * function.c (pattern_matches): Take new arg PERCENT, a pointer into
  4369.     PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
  4370.     space and run find_percent on it.
  4371.     (expand_function: `filter', `filter-out'): Pass new arg to
  4372.     pattern_matches.
  4373.     * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
  4374.     static pattern rules.  Save the percent pointer into implicit rule
  4375.     targets, and pass them to create_pattern_rule.
  4376.     * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
  4377.     (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
  4378.     pointers into the corresponding elements of TARGETS, where the %s are.
  4379.  
  4380. Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4381.  
  4382.     * Version 3.54.8.
  4383.  
  4384.     * README.templatate, README-doc.template: New files, turned into README
  4385.     and README-doc to go into the two distribution tar files.
  4386.     * GNUmakefile: Added a rule to edit the version number in
  4387.     README.template and README-doc.template, producing README and
  4388.     README-doc.
  4389.  
  4390.     * remake.c (update_goal_chain): If -n or -q is in effect for a
  4391.     makefile, and it got updated, don't change STATUS, so we can still
  4392.     return -1 (meaning nothing was done).  This avoids an infinite loop on
  4393.     "make -n Makefile".
  4394.  
  4395. Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4396.  
  4397.     * remake.c (notice_finished_file): Treat -q the same as -n.
  4398.  
  4399.     * remake.c (update_goal_chain): Fixed handling of return from
  4400.     update_file.  If -n or -q is in effect, ignore it.
  4401.  
  4402.     * job.c (start_job): Don't test for -t.  We should never get called in
  4403.     that case.
  4404.  
  4405. Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4406.  
  4407.     * function.c (expand_function): Removed unused variables.
  4408.     (handle_function): Removed unused variable.
  4409.  
  4410.     * main.c (main): Removed unused variable.
  4411.  
  4412. Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4413.  
  4414.     * Version 3.54.7.
  4415.  
  4416.     * remake.c (notice_finished_file): If FILE's modtime actually changed,
  4417.     increment files_remade.
  4418.     (remake_file): Don't increment files_remade.
  4419.  
  4420.     * remake.c (update_file): Don't print "up to date" messages for
  4421.     phony files.
  4422.  
  4423.     * job.c (child_handler): Don't set C->file->update_status to 1 if
  4424.     start_job returns nonzero under -n or -t.
  4425.  
  4426.     * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
  4427.  
  4428.     * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
  4429.     for a few months).
  4430.  
  4431. Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4432.  
  4433.     * job.c (exec_command): Fixed to not ignore the last path component and
  4434.     to do the right thing with an empty path.
  4435.  
  4436. Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4437.  
  4438.     * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
  4439.     Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
  4440.  
  4441. Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4442.  
  4443.     * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
  4444.     <sys/wait.h>, define it as (WTERMSIG != 0).
  4445.  
  4446. Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4447.  
  4448.     * remake.c (remake_file): If FILE has no commands and is a target,
  4449.     don't set its time to now.  The time gets reset by notice_finished_file
  4450.     anyway, and it isn't needed since check_dep checks for nonexistence.
  4451.  
  4452.     * Version 3.54.6.
  4453.  
  4454.     * read.c (read_makefile): Don't read off the end of the string after an
  4455.     `include'.
  4456.  
  4457.     * job.c (exec_command): New function to search the path for a file and
  4458.     execute it.
  4459.     (start_job): Use exec_command rather than execvp.
  4460.  
  4461.     * read.c (read_makefile): Expand `include' directive args before
  4462.     parsing them.  Allow trailing whitespace after filename.
  4463.  
  4464.     * variable.c (target_environment): Put makelevel + 1, rather than
  4465.     makelevel, in the `MAKELEVEL' envariable.
  4466.  
  4467. Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4468.  
  4469.     * remake.c (notice_finished_file): Don't get the new modtime of phony
  4470.     files.
  4471.  
  4472.     * remake.c (remake_file): Run commands instead of touching under -t if
  4473.     FILE->cmds->any_recurse is set.
  4474.  
  4475.     * commands.h (struct commands): Add new member `any_recurse', to be set
  4476.     nonzero if any `lines_recurse' element is nonzero.
  4477.     * commands.c (chop_commands): Set the `any_recurse' member.
  4478.  
  4479.     * commands.c (execute_file_commands): Split chopping of commands into
  4480.     lines into new function chop_commands.
  4481.     * commands.h: Declare chop_commands.
  4482.  
  4483.     * read.c (read_makefile): Test for a line beginning with a tab after
  4484.     checking for conditional lines, but before all other checks.
  4485.  
  4486. Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4487.  
  4488.     * read.c (read_makefile): Match directives against collapsed line
  4489.     and use that for their args.
  4490.  
  4491.     * read.c (read_makefile): Warn about extra text after `include'.
  4492.  
  4493. Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4494.  
  4495.     * make.texinfo (Rules: Directory Search: Selective Search): Fixed
  4496.     example to use correct `vpath' syntax.
  4497.  
  4498. Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4499.  
  4500.     * Version 3.54.5.
  4501.  
  4502.     * job.c (start_job): In the child side, unblock SIGCHLD.
  4503.  
  4504. Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4505.  
  4506.     * make.h: Don't include <sys/types.h> #ifdef sun.
  4507.  
  4508. Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4509.  
  4510.     * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
  4511.     directory names.
  4512.  
  4513.     * job.c (wait_for_children): Changed "waiting for children" message to
  4514.     "waiting for unfinished jobs".
  4515.  
  4516. Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4517.  
  4518.     * load.c (load_average): Use an unsigned offset into kmem.
  4519.  
  4520. Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4521.  
  4522.     * variable.c (pop_variable_scope): Don't free the head of the chain of
  4523.     variables in each bucket twice.
  4524.  
  4525. Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4526.  
  4527.     * GNUmakefile: Include COPYING in the doc tar file.
  4528.  
  4529.     * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
  4530.     "for" loops with next_token or end_of_token calls.
  4531.  
  4532. Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4533.  
  4534.     * Version 3.54.4.
  4535.  
  4536.     * compatMakefile: Documented new conditionals.
  4537.  
  4538.     * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
  4539.     Don't define dup2 if HAVE_DUP2 is defined.
  4540.  
  4541.     * job.c (child_handler): Interpret the return from start_job correctly.
  4542.  
  4543.     * remake.c (update_file_1): Don't write "target not remade because of
  4544.     errors" message under -n or -q.
  4545.  
  4546.     * read.c: Declare getpwnam.
  4547.  
  4548.     * glob.c: Use <dirent.h> if DIRENT is defined.
  4549.     [USG]: Don't declare memcpy, since <memory.h> does.
  4550.  
  4551. Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4552.  
  4553.     * misc.c (collapse_line): Copy the line over in the right place.
  4554.  
  4555. Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
  4556.  
  4557.     * remake.c: Conditionalize inclusion of <sys/file.h> on not
  4558.     USG, since HP-UX defines a `struct file' there.
  4559.  
  4560. Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4561.  
  4562.     * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
  4563.     and don't define other macros; this covers HP-UX.
  4564.     If WTERMSIG is not defined, use int or union wait based on USG and
  4565.     HAVE_SYS_WAIT; this covers BSD and SysV.
  4566.  
  4567.     * Version 3.54.3 (alpha).
  4568.  
  4569.     * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
  4570.  
  4571.     * job.c (unblock_children [USG]): Declare child_handler.
  4572.  
  4573.     * job.c: Renamed WRETCODE to WEXITSTATUS.
  4574.     [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
  4575.     WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
  4576.  
  4577.     * main.c (main): If there are no goals, fatal AFTER printing the data
  4578.     base under -p.
  4579.  
  4580. Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4581.  
  4582.     * glob.c [USG]: #define rindex as strrchr.
  4583.  
  4584.     * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
  4585.     NOFILE.
  4586.  
  4587. Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4588.  
  4589.     * Version 3.54.2 (alpha).
  4590.  
  4591.     * expand.c (variable_expand): When expanding recursive variable
  4592.     references (${${a}}), use the correct delimiters in the constructed
  4593.     variable reference.
  4594.  
  4595. Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4596.  
  4597.     * compatMakefile: Clear out and redefine the .SUFFIXES list because
  4598.     silly Sun 4 make defines .cps.h.
  4599.  
  4600.     * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
  4601.  
  4602.     * remake.c: Include <sys/file.h> for O_* on 4.2.
  4603.  
  4604.     * commands.c: Define sigmask if it's not defined.
  4605.  
  4606. Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4607.  
  4608.     * remake.c (remake_file): Don't always increment files_remade.
  4609.  
  4610.     * variable.c (push_new_variable_scope): Zero the new variable hash
  4611.     table.
  4612.  
  4613. Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4614.  
  4615.     * expand.c (variable_expand): When terminating the variable expansion
  4616.     buffer, use variable_buffer_output instead of a simply zero store,
  4617.     because the buffer may need to be enlarged.
  4618.  
  4619. Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4620.  
  4621.     * Version 3.54.
  4622.  
  4623.     * default.c (default_suffixes): Added `.ln'.
  4624.     (default_suffix_rules): Changed lint rules to use -C.
  4625.  
  4626. Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4627.  
  4628.     * job.c (start_job): Set `environ' to CHILD->environment before execing
  4629.     in the child process!
  4630.  
  4631. Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  4632.  
  4633.     * compatMakefile: Put job.h and rule.h in `srcs'.
  4634.  
  4635.     * Version 3.53.
  4636.  
  4637. Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  4638.  
  4639.     * job.c (start_job): If there are no more commands, return nonzero
  4640.     under -n or -t.
  4641.  
  4642.     * compatMakefile (make): Pass `-f' to mv.
  4643.  
  4644.     * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
  4645.     $(ARCH)/make instead of *.o and make.
  4646.  
  4647.     * function.c (string_glob): Don't try to use freed storage!
  4648.  
  4649.     * read.c (readline): If there is only one byte of space in the buffer,
  4650.     enlarge the buffer before reading more.
  4651.  
  4652.     * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
  4653.  
  4654. Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4655.  
  4656.     * GNUmakefile (depend): Split commands into two lines so they won't be
  4657.     so long when variable-expanded.
  4658.  
  4659.     * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
  4660.     describing it got removed when the USG/wait stuff was documented.
  4661.  
  4662. Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4663.  
  4664.     * Version 3.52.
  4665.  
  4666. Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4667.  
  4668.     * remake.c (check_dep): Drop circular dependencies instead of fataling.
  4669.     (update_file_1 already does this.)
  4670.  
  4671.     * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
  4672.     the assembler before the source file name.
  4673.  
  4674. Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  4675.  
  4676.     * Version 3.51.
  4677.  
  4678.     * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
  4679.  
  4680.     * file.c (remove_intermediates): If !SIG, write a single "rm" command
  4681.     line, listing all files.
  4682.  
  4683.     * read.c (read_makefile): Don't free the storage for the passed
  4684.     filename, since it might not be malloc'd.  When doing an included
  4685.     makefile, free the name's storage.
  4686.     (read_all_makefiles): Use variable_expand to find the value of
  4687.     `MAKEFILES'.  Free the storage for the names of -f makefiles.
  4688.     (read_makefile): Allocate storage for the makefile name in the
  4689.     `struct file' in read_makefiles.
  4690.  
  4691.     * make.texinfo (Running: Instead of Execution): Document the effect of
  4692.     + and $(MAKE)/${MAKE}.
  4693.  
  4694.     * make.texinfo (Functions: Foreach Function): Document that if the
  4695.     iteration variable was undefined before the `foreach' call, it will be
  4696.     undefined after the call.
  4697.  
  4698.     * commands.c: Split into commands.c, job.h, and job.c.
  4699.  
  4700.     * rule.c (try_implicit_rule, pattern_search): Moved to new file
  4701.     implicit.c.
  4702.  
  4703.     * rule.c: Split into rule.h, rule.c, and default.c.
  4704.     * default.c (install_default_pattern_rules): Renamed to
  4705.     install_default_implicit_rules.
  4706.     * make.h, main.c (main): Renamed uses.
  4707.  
  4708.     * make.c: Renamed to misc.c.
  4709.  
  4710.     * make.c (main, log_working_directory, decode_switches,
  4711.     decode_env_switches, define_makeflags, die, print_version,
  4712.     print_data_base): Moved to new file main.c.
  4713.  
  4714.     * commands.c (execute_file_commands): Don't collapse backslash-newlines
  4715.     here.  When chopping the commands up into lines, don't chop at
  4716.     backslash-newlines.
  4717.     (start_job): Collapse backslash-newlines after printing the line.
  4718.  
  4719.     * commands.c (start_job): Don't collapse backslash-newlines here.
  4720.     (execute_file_commands): Collapse backslash-newlines before chopping
  4721.     the commands up into lines.
  4722.  
  4723.     * commands.c (set_file_variables): Initialize the length counters for
  4724.     $^ and $? to zero!
  4725.  
  4726.     * commands.c (start_job): Use vfork instead of fork.  Someone else says
  4727.     the child and parent DO have separate file descriptors.
  4728.  
  4729.     * variable.c: Split internals into variable.c, function expansion into
  4730.     function.c, and variable expansion into expand.c.
  4731.     * function.c (handle_function): New function to check for a function
  4732.     invocation and expand it.
  4733.     * expand.c (variable_expand): Use handle_function.
  4734.     * variable.c (push_new_variable_scope): New function to push a new
  4735.     empty variable set onto the current setlist.
  4736.     (pop_variable_scope): New function to pop the topmost set from the
  4737.     current setlist and free its storage.
  4738.     * function.c (expand_function: `foreach'): Push a new variable scope
  4739.     for the iteration variable and pop the scope when finished.
  4740.     * variable.h: Declare new functions.
  4741.     * variable.c (initialize_variable_output): New function to return a
  4742.     pointer to the beginning of the output buffer.
  4743.     (save_variable_output): New function to save the variable output state.
  4744.     (restore_variable_output): New function to restore it.
  4745.     * expand.c (variable_expand): Use initialize_variable_output.
  4746.     (allocated_variable_expand): Use {save,restore}_variable_output.
  4747.     * variable.c (current_setlist): Renamed to current_variable_set_list
  4748.     and made global.
  4749.  
  4750. Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4751.  
  4752.     * remake.c (library_file_mtime): Check for libNAME.a in the current
  4753.     directory before doing VPATH search.
  4754.  
  4755.     * variable.c (print_variable_set): Don't write "# Variables", and write
  4756.     fewer blank lines.
  4757.     (print_variable_data_base): Precede the variables with "# Variables".
  4758.  
  4759.     * make.c (main): Print the data base under -p after doing everything
  4760.     else, just before exitting.  This way it gets info determined in
  4761.     updating the goal targets.
  4762.  
  4763.     * variable.c (print_variable_data_base): Split into print_variable,
  4764.     which prints one variable, and print_variable_set, which prints a set.
  4765.     Replaced with a call to print_variable_set for the global set.
  4766.     (print_file_variables): New function to print a given file's local
  4767.     variables.
  4768.  
  4769.     * file.c (print_file_data_base): Call print_file_variables to print
  4770.     each file's local variables.
  4771.  
  4772.     * commands.c (set_file_variables): Actually define the values for
  4773.     the $^ and $? variables!!!
  4774.  
  4775.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
  4776.     F versions of $^ and $?.
  4777.  
  4778.     * commands.c (start_job): In the child fork, use getdtablesize and a
  4779.     loop to close all file descriptors other than 0, 1, and 2.  We need to
  4780.     do this since not only the bad stdin pipe, but also some directories,
  4781.     may be open.
  4782.  
  4783.     * commands.c (start_job): Use fork instead of vfork, because a vfork
  4784.     parent and child share file descriptors, and our child needs to diddle
  4785.     with stdin.
  4786.  
  4787.     * variable.c (initialize_file_variables): When created a new variable
  4788.     set, zero out the hash table.
  4789.  
  4790.     * variable.c (target_environment): Don't use variables whose names are
  4791.     not made up of alphanumerics and underscores.
  4792.  
  4793.     * remake.c (update_file_1): Set the `parent' member of each dependency
  4794.     to FILE before updating it.
  4795.  
  4796.     * file.h (struct file): Add `parent' member.
  4797.  
  4798.     * variable.c (initialize_file_variables): Don't take second arg PARENT.
  4799.     Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
  4800.     to initialize it.
  4801.  
  4802.     * variable.h: Declare {allocated_}variable_expand_for_file.
  4803.  
  4804.     * variable.c (allocated_variable_expand): Now
  4805.     allocated_variable_expand_for_file, calling variable_expand_for_file,
  4806.     and taking second arg FILE.
  4807.     (allocated_variable_expand): New function, a wrapper around
  4808.     allocated_variable_expand_for_file, passing a nil second arg.
  4809.  
  4810. Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4811.  
  4812.     * commands.c (start_job): On the child side of the fork, always close
  4813.     the bad stdin file descriptor.
  4814.  
  4815.     * commands.c (struct child): New member `environment', to hold the
  4816.     environment for the child.
  4817.     (execute_file_commands): Set the new childs `environment' member to nil
  4818.     before calling start_job.
  4819.     (start_job): Set up CHILD->environment before running the commands if
  4820.     it is nil.
  4821.  
  4822.     * make.c (main): Don't call new_environ.  `shell' functions will now be
  4823.     run with the environment make was called with.
  4824.  
  4825.     * commands.c (child_handler): Don't check C->command_ptr before calling
  4826.     start_job since we now have to check C->file->cmds->command_lines and
  4827.     it's easier to let start_job handle all that.
  4828.  
  4829.     * commands.c (struct child): New member `command_line', to hold an
  4830.     index into file->cmds->command_lines.
  4831.     (execute_file_commands): Set the new child's `command_line' to 0 and
  4832.     its `commands' and `commands_ptr' to nil.
  4833.     (start_job): When CHILD->command_ptr runs out, increment
  4834.     CHILD->command_line and run the corresponding line from
  4835.     CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
  4836.     the CHILD->file->cmds->lines_recurse element for that line is set.
  4837.  
  4838.     * commands.c (execute_file_commands): Chop CMDS up into lines, setting
  4839.     its `command_lines' and `lines_recurse' members, if it wasn't already
  4840.     chopped.
  4841.  
  4842.     * commands.h (struct commands): New members `command_lines' and
  4843.     `lines_recurse'.  The first is an array of chopped-up lines; the second
  4844.     is an array of flags, each nonzero if the corresponding line is
  4845.     recursive.
  4846.  
  4847.     * variable.c (variable_expand_for_file): If FILE is nil, just do a
  4848.     vanilla variable_expand.
  4849.     (expand_function: `shell'): Pass second arg (as nil) to
  4850.     construct_command_argv.
  4851.  
  4852.     * commands.c (construct_command_argv): Use variable_expand_for_file on
  4853.     `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
  4854.     variables.  This handles file-local and recursive values correctly.
  4855.     To support this, take an additional argument FILE.
  4856.  
  4857.     * variable.c (initialize_file_variables): New function to initialize
  4858.     FILE's variable set list from PARENT's setlist.  PARENT is the
  4859.     immediate dependent that caused FILE to be remade, or nil if FILE is a
  4860.     goal.  (When user-level per-file variables are implemented, PARENT
  4861.     should be passed as nil when defining per-file variables.)
  4862.  
  4863.     * variable.c (variable_expand_for_file): New function to expand a line
  4864.     using the variable set of a given file, and reporting error messages
  4865.     for the file and line number of that file's commands.
  4866.  
  4867.     * variable.h: Don't declare lookup_variable_for_file.
  4868.  
  4869.     * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
  4870.     now uses current_setlist.
  4871.     (global_setlist): New static `struct variable_set_list', a setlist
  4872.     containing global_variable_set.
  4873.     (current_setlist): New static `struct variable_set_list *', a pointer
  4874.     to the current variable set list.
  4875.     (define_variable): Define in the current top-level set, not the global
  4876.     set.
  4877.  
  4878.     * commands.c (set_file_variables): New function to set up the automatic
  4879.     variables for a file in its own variable set.
  4880.     (execute_file_commands): Use set_file_variables.
  4881.  
  4882.     * variable.c (new_environ): Replaced with target_environment, taking an
  4883.     argument FILE, and returning an environment for FILE's commands.
  4884.  
  4885.     * variable.c, variable.h: Remove all global special variable pointers.
  4886.  
  4887.     * variable.c (define_variable_for_file): New function like
  4888.     define_variable, but takes additional arg FILE, and defines the
  4889.     variable in the variable set at the top of FILE's chain.
  4890.     (lookup_variable_for_file): New function like lookup_variable, but
  4891.     takes additional arg FILE, and looks the variable up in all of FILE's
  4892.     variable sets.
  4893.  
  4894.     * file.h (struct file): New member `variables', a `struct
  4895.     variable_set_list' containing the list of variable sets used in the
  4896.     expansion of the file's commands.
  4897.  
  4898.     * variable.c (variables): Replaced with static `struct variable_set'
  4899.     global_variable_set.
  4900.     (define_variable): Now define_variable_in_set, taking additional
  4901.     argument SET, the `struct variable_set' to define it in.
  4902.     (define_variable): Use define_variable_in_set with global_variable_set.
  4903.     (lookup_variable): Now lookup_variable_in_set, taking additional
  4904.     argument SET, the `struct variable_set' to look it up in.
  4905.     (lookup_variable): Use lookup_variable_in_set with global_variable_set.
  4906.     (lookup_variable_in_setlist): New function to look up a variable in a
  4907.     `struct variable_set_list' using lookup_variable_in_set.
  4908.  
  4909.     * variable.h (struct variable_set): New structure, containing a hash
  4910.     table and the number of hash buckets.
  4911.     (struct variable_set_list): New structure, containing a link for a
  4912.     linked-list, and a `struct variable_set'.
  4913.  
  4914.     * commands.c (start_job): Under -n, return what the recursive start_job
  4915.     call returns, since it might actually start a child.
  4916.  
  4917.     * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
  4918.  
  4919.     * commands.c (execute_file_commands): If start_job returns
  4920.     failure, but -t is set, set FILE->update_status to success.
  4921.     (start_job): If -t is set, and the commands are not recursive, return
  4922.     failure (is is done for -q).
  4923.  
  4924.     * remake.c (touch_file): New function to touch FILE.
  4925.     (remake_file): Use touch_file.  When touching a file, still do
  4926.     execute_file_commands.
  4927.  
  4928.     * remake.c (remake_file): Don't check question_flag (-q), since we
  4929.     can't know here if the commands are recursive.
  4930.  
  4931.     * commands.c (start_job): Don't use the `recursive' member of
  4932.     CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
  4933.     ${MAKE} in the command line here.
  4934.  
  4935.     * commands.h (struct commands): Remove `recursive' member.
  4936.  
  4937.     * rule.c (install_default_pattern_rules): Remove use of `recursive'
  4938.     member.
  4939.  
  4940.     * read.c (record_files): Don't check commands from $(MAKE) and set
  4941.     their `recursive' member.
  4942.  
  4943.     * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
  4944.     and SIGTERM, but don't send it to ourselves because it will cause a
  4945.     core dump.
  4946.  
  4947. Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4948.  
  4949.     * Version 3.50.
  4950.  
  4951.     * variable.c (variable_expand): Use allocated_variable_expand instead
  4952.     of expand_argument in a few places.
  4953.  
  4954.     * variable.c (allocated_variable_expand): Do static variable shuffling
  4955.     here instead of using expand_argument.
  4956.     (expand_argument): Use allocated_variable_expand.
  4957.  
  4958.     * variable.c (recursively_expand): New function to recursively expand
  4959.     its argument (a `struct variable'), returning the malloc'd value.
  4960.     (variable_expand): Use recursively_expand.
  4961.  
  4962. Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4963.  
  4964.     * make.c (main): Fixed buggy fix in deciding to increase space for
  4965.     command-line variable definitions.  (First it never did it, then it
  4966.     always did it; now it does it when necessary.)
  4967.  
  4968. Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  4969.  
  4970.     * make.c (main): Fixed bug in deciding to increase space for
  4971.     command-line variable definitions.
  4972.  
  4973. Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4974.  
  4975.     * read.c (multi_glob): Use allocated_expand_variable for checking
  4976.     `HOME' variable for ~ expansion, since this may be called from inside a
  4977.     `wildcard' function expansion.
  4978.  
  4979.     * variable.h: Declare allocated_expand_variable.
  4980.  
  4981.     * variable.c (allocated_expand_variable): New function to do variable
  4982.     expansion in an allocated buffer, rather than the static one.
  4983.  
  4984.     * make.c (main): Don't set glob_tilde (it no longer exists).
  4985.  
  4986.     * variable.c (string_glob): Use multi_glob and parse_file_seq.
  4987.  
  4988.     * read.c (multi_glob): Do ~ expansion here.
  4989.  
  4990.     * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
  4991.  
  4992.     * variable.c (define_variable, lookup_variable): Use a smarter hashing
  4993.     algorithm (the same one used for files and directories).
  4994.     (VARIABLE_BUCKETS): Increased to 523.
  4995.  
  4996.     * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
  4997.     algorithm, spreading the bits about somewhat.
  4998.  
  4999.     * make.c (log_working_directory): Under `-p', precede the directory
  5000.     message with a `#'.
  5001.  
  5002.     * make.c (print_version): Under `-p', precede each line with a `#'.
  5003.     (print_data_base): Precede the header line with a `#' and include the
  5004.     date and time on it.
  5005.  
  5006.     * vpath.c (print_vpath_data_base): Precede non-directive
  5007.     lines with `#'s.
  5008.  
  5009.     * commands.c (print_commands): Precede the non-command line with a `#'.
  5010.  
  5011.     * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
  5012.     non-rule lines with `#'s.
  5013.  
  5014.     * dir.c (print_dir_data_base): Precede all lines with `#'s.
  5015.  
  5016.     * variable.c (print_variable_data_base): Changed format so that it can
  5017.     be makefile input.  Lines that are not variable definitions are
  5018.     preceded with `#'.  Nonrecursive variable definitions are made with all
  5019.     dollar signs doubled to reproduce the initial value.  Recursive
  5020.     variable definitions containing newlines are done with `define'
  5021.     directives.  Nonrecursive variable definitions containing newlines, and
  5022.     variable names containing :, =, or newlines, will come out garbled.
  5023.  
  5024. Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5025.  
  5026.     * Version 3.49.
  5027.  
  5028. Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5029.  
  5030.     * variable.c (expand_function: `filter'/`filter-out'): Use
  5031.     find_percent instead of pattern_p.
  5032.  
  5033.     * variable.c (expand_function: `patsubst'): Pass new args (both nil)
  5034.     to patsubst_expand.
  5035.     (variable_expand): For $(var:pat%=rep%) references, pass new args to
  5036.     patsubst_expand so as to avoid find_percent and thus disallow
  5037.     quoting the %s.
  5038.  
  5039.     * read.c (record_files): Pass new args to patsubst_expand.
  5040.  
  5041.     * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
  5042.     and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
  5043.     (or REPLACE) has already been run through find_percent, and
  5044.     PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
  5045.  
  5046.     * make.h: Declare find_percent instead of pattern_p.
  5047.  
  5048.     * read.c (pattern_p): Changed to find_percent, returning a pointer
  5049.     to the %, or nil if there is none.
  5050.     (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
  5051.     % in PATTERN.
  5052.     (read_makefile): Pass PATTERN_PERCENT to record_files.
  5053.  
  5054.     * make.texinfo (Rules: Static Pattern: Static Usage,
  5055.     Rules: Directory Search: Selective Search,
  5056.     Functions: Text Functions): Documented that `%' can be quoted.
  5057.  
  5058.     * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
  5059.     to allow quoted %s in patterns.
  5060.  
  5061.     * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
  5062.     to allow quoted %s.  Quoting backslashes are removed from REPLACE
  5063.     even if PATTERN contains no unquoted %.
  5064.  
  5065.     * read.c (pattern_p): Made global.
  5066.     * make.h: Declare pattern_p.
  5067.  
  5068.     * read.c (pattern_p): New function to search for an unquoted % in a
  5069.     string.  Backslashes quote %s and backslashes.  Quoting backslashes
  5070.     are removed from the string by compacting it into itself.  Returns
  5071.     nonzero if an unquoted % was found, zero if not.
  5072.     (record_files): Use pattern_p to check for implicit rules.
  5073.     (read_makefile): Use pattern_p to check for static pattern rules.
  5074.     Also use it to allow quoted %s in `vpath' patterns; warn about
  5075.     `vpath' patterns with no %s.
  5076.  
  5077. Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5078.  
  5079.     * glob.c (glob_filename): Replace a `1' with the `l' that should
  5080.     have been there.  This incidentally stops it from dumping core.
  5081.  
  5082.     * glob.c (glob_filename): If the path is just a directory, with no
  5083.     file name pattern, return the directory alone.
  5084.  
  5085.     * glob.c (glob_tilde): New global variable (int), defaults to zero.
  5086.     (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
  5087.  
  5088.     * variable.c (string_glob): Keep a static allocated buffer for file
  5089.     names taken from the list, instead of allocating and freeing one
  5090.     every time.
  5091.  
  5092. Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5093.  
  5094.     * make.c (decode_switches): Get floating numbers from the right string.
  5095.  
  5096. Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5097.  
  5098.     * commands.c (delete_child_targets): When deleting `also_make'
  5099.     files, include the target's name in the message:
  5100.         make: *** [foo] Deleting file `bar'
  5101.  
  5102. Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5103.  
  5104.     * make.c (max_load_average, default_load_average): Default to -1.
  5105.  
  5106.     * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
  5107.     not equal.
  5108.  
  5109. Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5110.  
  5111.     * variable.c (variable_buffer_output): Don't try to do pointer
  5112.     arithmetic between objects not in the same array.
  5113.  
  5114. Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5115.  
  5116.     * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
  5117.     changes to allow for strange compiler syntax.
  5118.  
  5119.     * rule.c (default_variables): Don't include "> $@" in
  5120.     $(PREPROCESS.S), since it's already in the .S.s rule.
  5121.  
  5122.     * file.c (enter_file): Make a new double-colon file the `prev'
  5123.     member of the bottom `prev' file (the one whose `prev' is nil).
  5124.  
  5125.     * read.c (do_define): Append newlines after copying the lines into
  5126.     the value buffer, so we end up with a trailing newline.
  5127.  
  5128.     * make.c (print_version): If the global variable
  5129.     `remote_description' is not nil or "", append "-%s" (its value) to
  5130.     the version number.
  5131.     * remote-*.c: Define remote_description appropriately.
  5132.  
  5133. Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5134.  
  5135.     * commands.c (error_status): Converted to new function child_error,
  5136.     taking new arguments TARGET_NAME and IGNORED, and writing an error
  5137.     message: "*** [target] Error 1" (or signal #, etc.), appending
  5138.     " (ignored)" if IGNORED is nonzero.
  5139.     (child_handler): Use child_error instead of error_status.
  5140.  
  5141.     * compatMakefile (all): Don't depend on `doc'.
  5142.  
  5143.     * compatMakefile (clean): Don't remove make-info*.
  5144.     (realclean): New rule, depends on `clean', removes tags, TAGS,
  5145.     and all Info and TeX files.
  5146.  
  5147. Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5148.  
  5149.     * variable.c (print_variable_data_base), file.c
  5150.     (print_file_data_base), rule.c (print_rule_data_base),
  5151.     Use floating-point for averages and percentages.
  5152.  
  5153.     * make.c (print_data_base): Print messages before and after the data
  5154.     base information.
  5155.  
  5156.     * commands.c (print_commands): Changed output format to separate
  5157.     lines in commands and prefix them with tabs.
  5158.  
  5159.     * dir.c (print_dir_data_base): Changed output format slightly.
  5160.  
  5161.     * vpath.c (struct vpath, construct_vpath_list,
  5162.     selective_vpath_search): Remove the `exists' member and its uses.
  5163.  
  5164.     * vpath.c (print_vpath_data_base): New function to print all
  5165.     selective and general VPATH search paths (for -p).
  5166.  
  5167.     * make.c (print_data_base): Call print_vpath_data_base.
  5168.  
  5169.     * file.c (print_file_data_base): Changed format to look more like a
  5170.     makefile rule.  Now reports all information in the `struct file'.
  5171.  
  5172.     * rule.c (print_rule_data_base): Changed format of display from:
  5173.       %: (terminal)
  5174.        depends on: RCS/%,v
  5175.     to:
  5176.       %: RCS/%,v
  5177.         is terminal.
  5178.         references nonexistent subdirectory.
  5179.     Also include number and percent that refer to nonexistent
  5180.     subdirectories.
  5181.  
  5182. Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5183.  
  5184.     * make.c (main): Figure out the level of recursion before writing
  5185.     the `Entering directory' message.
  5186.     * variable.c (define_automatic_variables): Don't figure out the
  5187.     level of recursion from `MAKELEVEL'.  It's now done in main.
  5188.  
  5189.     * Version 3.48.
  5190.  
  5191. Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5192.  
  5193.     * commands.c (child_handler): Set `update_status' to zero when there
  5194.     are no more commands.
  5195.  
  5196.     * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
  5197.     recurson in the message (make[1]: ...).
  5198.  
  5199.     * commands.c (child_handler): Change status to `cs_finished' when
  5200.     commands fail.
  5201.  
  5202.     * commands.c (start_job): Return 0 (success) if there were no more
  5203.     commands for the child.
  5204.     (child_handler): Change the status to `cs_finished' when start_job
  5205.     fails to start the commands.
  5206.  
  5207.     * make.c (main): Don't handle SIGEMT if it's not defined.
  5208.     Do handle SIGDANGER if it is defined.
  5209.  
  5210.     * commands.c (child_handler): Reorganized inner loop so that it
  5211.     doesn't try to inspect the child before finding it.
  5212.  
  5213. Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5214.  
  5215.     * make.c (end_of_token): Fixed bug wherein backslashes caused
  5216.     immediate return.
  5217.  
  5218.     * Version 3.47.
  5219.  
  5220.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document
  5221.     setting of `$*' for explicit rules.  Add note clarifying that
  5222.     automatic variables, though referred to in the documentation as
  5223.     `$<', etc. are no different than `$(<)', etc.
  5224.  
  5225. Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5226.  
  5227.     * file.c (enter_file): Don't strip leading `./'s.
  5228.  
  5229.     * read.c (parse_file_seq): Strip leading `./'s.
  5230.  
  5231. Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5232.  
  5233.     * make.texinfo (Commands: Parallel, Running: Options): Document that
  5234.     -l with no argument removes a previous load limit.
  5235.  
  5236.     * make.c (struct command_switch): New member `default_value'.
  5237.     (default_job_slots): Default value (of 1) for -j.
  5238.     (default_load_average): Default value (of 0, unlimited) for -l.
  5239.     (command_switches): Use default values for -j and -l.
  5240.     Also, -l without an arg now means no load limit.
  5241.     (define_makeflags): Don't write positive_int or floating options
  5242.     whose values are their defaults.
  5243.  
  5244.     * make.c (main): Under -w, write a `Leaving directory' message
  5245.     before re-execing.
  5246.  
  5247. Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5248.  
  5249.     * Version 3.46.
  5250.  
  5251.     * Makefile: Provide an easy place for system-specific definitions
  5252.     (-DUSG, etc.) and extra object files (for whatever).
  5253.  
  5254.     * make.texinfo: Miscellaneous fixes from RMS.
  5255.  
  5256. Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5257.  
  5258.     * rule.c (pattern_search): Put rules with `subdir' flags set in
  5259.     TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
  5260.     loop, don't do lookup_file or file_exists_p calls for dependencies
  5261.     of rules with `subdir' flags set, but still do vpath_search calls
  5262.     and intermediate-file searches.
  5263.  
  5264. Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5265.  
  5266.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
  5267.     new definition of $* for explicit rules.
  5268.  
  5269.     * commands.c (execute_file_commands): If FILE->stem is nil, figure
  5270.     out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
  5271.     store the name sans suffix in FILE->stem (and $*).
  5272.  
  5273. Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5274.  
  5275.     * file.c (remove_intermediates): Don't use `file_exists_p' to check
  5276.     for the existence of intermediate files, because the hashed
  5277.     directories will probably be out of date.
  5278.  
  5279.     * commands.c (child_handler): Free the good stdin before running the
  5280.     next command line.
  5281.  
  5282.     * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
  5283.     defined.  Do case SIGDANGER (for IBM RT) if it is defined.
  5284.  
  5285.     * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
  5286.     (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
  5287.  
  5288.     * file.c (enter_file): If any `./'s are stripped off, allocate a new
  5289.     copy of the shortened name.
  5290.  
  5291.     * rule.c (pattern_search): Allocate the right length strings for
  5292.     `also_make' members.
  5293.  
  5294. Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5295.  
  5296.     * Version 3.45.
  5297.  
  5298.     * GNUmakefile: Make a separate tarfile of the DVI and info files.
  5299.  
  5300.     * make.c (define_makeflags): If a switch that takes an argument has
  5301.     its default value, put the switch in MAKEFLAGS with no arguments.
  5302.  
  5303.     * make.c (command_switches): Pass `-l' in MAKEFLAGS.
  5304.  
  5305. Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5306.  
  5307.     * GNUmakefile: Don't include the DVI and info files in the dist.
  5308.  
  5309.     * commands.c (child_handler): Don't call
  5310.     check_changed_{directories,vpaths}.
  5311.  
  5312.     * make.h: Don't declare check_changed_{directories,vpaths}.
  5313.  
  5314.     * vpath.c (check_changed_vpaths): Removed this function.
  5315.  
  5316.     * dir.c (struct directory): Remove `modtime' member.
  5317.     (find_directory): Don't set `modtime' member.
  5318.     (check_changed_directories): Removed this function.
  5319.  
  5320.     * remake.c (update_file_1): Set FILE->command_state to cs_finished
  5321.     if it didn't need to be remade.
  5322.  
  5323.     * remake.c (update_file): Only write the "up to date" message if the
  5324.     target went from `not_started' state to `finished' state without
  5325.     incrementing the count of files remade.
  5326.  
  5327.     * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
  5328.     defined, don't put them both in the `switch'.
  5329.  
  5330. Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5331.  
  5332.     * file.c (rename_file): Change FILE's name!!!
  5333.  
  5334.     * rule.c (create_pattern_rule): Set the `terminal' member of the new
  5335.     rule after calling new_pattern_rule, which zeros it.
  5336.  
  5337.     * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
  5338.  
  5339. Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5340.  
  5341.     * Makefile: Added a `clean' target.
  5342.  
  5343. Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5344.  
  5345.     * Version 3.44.
  5346.  
  5347.     * file.c (rename_file): If a `struct file' for the renamed-to name
  5348.     exists, and it is a target or has deps or commands, barf.
  5349.     If not just remove the old one for put in the new one.
  5350.  
  5351.     * remake.c (update_file_1, check_dep): Changed it back so that equal
  5352.     modtimes to NOT make dependencies be considered newer.  RCS checks
  5353.     out files with equal modtimes as the RCS files, so this screws it.
  5354.  
  5355.     * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
  5356.  
  5357.     * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
  5358.     without a good standard alloca can get it from the Emacs
  5359.     distribution (or somewhere).
  5360.  
  5361.     * dir.c: Don't include <sys/stat.h>, since make.h does.
  5362.  
  5363.     * make.c: Removed debugging version of getwd.
  5364.  
  5365. Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5366.  
  5367.     * Version 3.43.
  5368.  
  5369.     * remake.c (update_file_1): If a dependency loop is found, don't
  5370.     fatal.  Emit an error message and remove the dependency.
  5371.  
  5372.     * remake.c (library_file_mtime): Fixed to use the right names.
  5373.     (update_file_1, check_dep): Consider a dependency "newer" than its
  5374.     dependent if they have the same modification time.
  5375.  
  5376. Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5377.  
  5378.     * file.c (remove_intermediates): Don't try to remove nonexistent files.
  5379.  
  5380. Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5381.  
  5382.     * Version 3.42.
  5383.  
  5384.     * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
  5385.     $(FFLAGS) so explicit rules expecting these (which are in System V)
  5386.     will work.  However, there is no way to make setting these affect
  5387.     the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
  5388.     [USG]: Set GET to `get' rather than `/usr/sccs/get'.
  5389.  
  5390. Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5391.  
  5392.     * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
  5393.     dir_name (V), because the latter may get freed.
  5394.  
  5395. Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5396.  
  5397.     * Version 3.41.
  5398.  
  5399.     * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
  5400.  
  5401.     * file.c (rename_file): If a file with the new name already existed,
  5402.     use the same storage space, after freeing the old file's name, deps,
  5403.     and `also_make' member, preserving the link in the chain.
  5404.     Also write an error message telling the user to report the incident;
  5405.     I don't think this should be able to happen, but I'm not sure.
  5406.  
  5407.     * file.c (rename_file): Don't add the hash values of the old and new
  5408.     names together!  Reset HASHVAL before computing the second value.
  5409.  
  5410.     * dir.c (check_changed_directories): Zero the new file hash table
  5411.     after allocating it.
  5412.  
  5413.     * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
  5414.     directory exists.
  5415.  
  5416.     * vpath.c (check_changed_vpaths): New function to run through the
  5417.     search paths of all VPATHs, making the `exists' members correspond
  5418.     to reality.
  5419.  
  5420.     * commands.c (child_handler): Call check_changed_vpaths.
  5421.  
  5422.     * make.h: Declare check_changed_vpaths.
  5423.  
  5424.     * vpath.c (struct vpath): New element `exists', an array of char
  5425.     flags; exists[N] is nonzero if searchpath[N] exists.
  5426.     (construct_vpath_list): Set the `exists' member.
  5427.     (selective_vpath_search): Don't search directories whose `exists'
  5428.     elements are zero.
  5429.  
  5430.     * read.c (read_makefile): Set the `dontcare' flag of makefiles
  5431.     from the MAKEFILES variable if they were not mentioned anywhere but
  5432.     in the MAKEFILES variable.
  5433.  
  5434.     * read.c (read_makefile): Don't write an error message if fopen
  5435.     fails for a makefile from the MAKEFILES variable.
  5436.  
  5437.     * dir.c (struct directory): Add `modtime' member to record the
  5438.     modification time of the directory when it was opened.
  5439.     (check_changed_directories): New function to check all known
  5440.     directories; if their modtimes have changed since they were opened,
  5441.     their file tables are cleared and they are reset to be read in.
  5442.  
  5443.     * commands.c (child_handler): Call check_changed_directories before
  5444.     returning.
  5445.     make.h: Declare check_changed_directories.
  5446.  
  5447. Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5448.  
  5449.     * Version 3.40.
  5450.  
  5451.     * make.c (print_version): Made the copyright say 1988, 1989.
  5452.  
  5453.     * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
  5454.     the end of the read_makefiles chain, since the latter may be from an
  5455.     included makefile.  (Why did I do this before?)
  5456.  
  5457.     * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
  5458.     command-line variable definitions into argv[0], only into the MAKE
  5459.     variable!
  5460.  
  5461. Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5462.  
  5463.     * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
  5464.     member name.
  5465.  
  5466. Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5467.  
  5468.     * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
  5469.     `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
  5470.  
  5471. Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5472.  
  5473.     * Version 3.39.
  5474.  
  5475.     * COPYING, make.texinfo: New GNU General Public License, version 1.
  5476.  
  5477.     * *.c, *.h, Makefile: New copyright notices for the new GNU General
  5478.     Public License, version 1.
  5479.  
  5480.     * commands.c [USG]: Define WRETCODE correctly (again).
  5481.  
  5482.     * variable.c (expand_function: `shell'): Don't capture the standard
  5483.     error output of the shell command.
  5484.  
  5485.     * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
  5486.     length.
  5487.  
  5488.     * load.c [not UMAX] (load_average): Don't clobber the first nlist
  5489.     member when trying to set the second!
  5490.  
  5491. Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5492.  
  5493.     * commands.c (child_handler): Really ignore errors under -i and for
  5494.     - lines, don't just print a different message.
  5495.  
  5496.     * make.c (decode_switches): Fixed handling of arguments (or lack
  5497.     thereof) to switches.
  5498.  
  5499. Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5500.  
  5501.     * commands.c (construct_command_argv): Don't clobber LINE when
  5502.     checking the IFS variable.
  5503.  
  5504. Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5505.  
  5506.     * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
  5507.     randomness when calls fail.
  5508.  
  5509.     * Version 3.38.
  5510.  
  5511.     * commands.c (fatal_error_signal): If handling a user kill signal
  5512.     (TERM, INT, HUP), wait for the children without printing the
  5513.     "Waiting for children" message, since they will die quickly.
  5514.  
  5515.     * Version 3.37.
  5516.  
  5517.     * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
  5518.     is nonzero block waiting for remote children.  If not, return 0 if
  5519.     we would have to block.
  5520.  
  5521.     * commands.c (child_handler) [not USG]: If called as a signal
  5522.     handler, use wait3 and don't block.
  5523.     [USG]: If called as a signal handler, return after handling one child.
  5524.  
  5525. Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5526.  
  5527.     * file.c (snap_deps): Process all double-colon entries of each file,
  5528.     not just the first one.
  5529.  
  5530.     * Version 3.36.
  5531.  
  5532.     * remote-stub.c: remote.c renamed.
  5533.     remote.c: Just include remote-stub.c
  5534.  
  5535.     * commands.c (child_handler): If we were called as a signal handler,
  5536.     return after handling one child.
  5537.  
  5538.     * commands.c [not USG]: Include <signal.h> and define `sigmask' if
  5539.     <signal.h> doesn't.
  5540.     (block_children, unblock_children): Use sigmask rather than
  5541.     bitshifting explicitly (and incorrectly).
  5542.  
  5543.     * remote.c (remote_kill): New function to send a signal to a
  5544.     remote child.
  5545.  
  5546.     * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
  5547.     each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
  5548.     all pending targets before waiting for children.
  5549.     (struct child): Add new member `deleted'.
  5550.     (start_job): Initialize `deleted' member to 0.
  5551.     (delete_child_targets): New function to delete a given child's
  5552.     targets, unless the `deleted' flag in the `struct child' says they
  5553.     have already been deleted.  Sets this flag before returning.
  5554.  
  5555. Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5556.  
  5557.     * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
  5558.  
  5559. Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5560.  
  5561.     * commands.c (construct_command_argv): Don't make the 0th element of
  5562.     the argument list be "sh" when executing /bin/sh, because start_job
  5563.     uses the 0th element as the program name.
  5564.  
  5565. Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5566.  
  5567.     * Version 3.35.
  5568.  
  5569.     * read.c (readline): Put a null in the beginning of the buffer
  5570.     before starting the reading loop.
  5571.  
  5572.     * read.c (read_makefile): Made main reading loop while
  5573.     !feof (infile), and removed EOF check after calling readline.
  5574.  
  5575. Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5576.  
  5577.     * remote.c (block_remote_children, unblock_remote_children): New
  5578.     (stub) functions to block and restore asynchronous notification of
  5579.     remote child death.
  5580.  
  5581.     * commands.c (block_children): Call block_remote_children.
  5582.     (unblock_children): Call unblock_remote_children.
  5583.     (child_handler): If called as a signal handler, block remote
  5584.     children on entry and unblock them before returning.
  5585.  
  5586.     * commands.c (child_handler): For unknown children, if they are
  5587.     remote, give their remote ID; if local, give their PID and make's.
  5588.  
  5589.     * commands.c (execute_file_command): Don't put a new child in the
  5590.     chain unless start_job succeeds.  Block children before calling
  5591.     start_job, and unblock them after putting the child in the chain and
  5592.     incrementing `job_slots_used' (if start_job succeeded).
  5593.  
  5594.     * commands.c (block_children, unblock_children): Make these globally
  5595.     visible (not `static').
  5596.     commands.h: Declare block_children and unblock_children.
  5597.  
  5598.     * variable.c (expand_function: `shell'): Use
  5599.     `shell_function_completed'.  Block children before forking and
  5600.     unblock after `shell_function_pid' is set properly and
  5601.     `shell_functon_completed' is reset to 0.
  5602.  
  5603.     * commands.c (child_handler): When the child of the `shell' function
  5604.     completes, set `shell_function_completed' to 1 if it actually ran,
  5605.     or -1 if it didn't (due to fork or exec failure).
  5606.  
  5607.     * commands.c (block_children, unblock_children): New functions to
  5608.     block and unblock the child termination signal.
  5609.     (wait_for_children): Use block_children and unblock_children.
  5610.     (execute_file_commands): Block children around the critical section
  5611.     wherein a new child is put on the chain.
  5612.  
  5613.     * make.c (main): Change the environment to contain the correct
  5614.     MAKELEVEL before re-execing.
  5615.  
  5616. Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5617.  
  5618.     * Version 3.34.
  5619.  
  5620. Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5621.  
  5622.     * rule.c (default_variables): Fixed $(LINK.c).
  5623.  
  5624. Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5625.  
  5626.     * Version 3.33.
  5627.  
  5628.     * version.c: Removed copyright notice, since this is a one-line file.
  5629.  
  5630.     * commands.c (error_status): Made it return BUF, rather than running
  5631.     off the end (this apparently worked on Sun 3s for some reason).
  5632.  
  5633.     * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
  5634.     rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
  5635.  
  5636. Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5637.  
  5638.     * Version 3.32.
  5639.  
  5640. Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5641.  
  5642.     * remake.c (remake_file): Don't touch phony targets.
  5643.  
  5644.     * rule.c (convert_to_pattern): Fixed an incorrect length passed to
  5645.     savestring.
  5646.  
  5647.     * variable.c (expand_function: `shell'): Close the read side of the
  5648.     pipe on the parent side of the fork.
  5649.  
  5650.     * commands.c (start_job): On the child of the fork, close the
  5651.     BAD_STDIN fd if we're not using it.
  5652.  
  5653.     * read.c (record_files): A file beginning with a dot can be a
  5654.     default target if it also contains a slash (as in `../foo').
  5655.  
  5656.     * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
  5657.     ignoring it to avoid a race condition when child_handler is returning.
  5658.  
  5659.     * commands.c (child_handler): Do blocking waits.
  5660.     (error_status): Return a string describing exit status.  (Split out
  5661.     of child_handler).
  5662.  
  5663.     * read.c (multi_glob): Change VECTOR to VEC for Alliant.
  5664.  
  5665. Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5666.  
  5667.     * Version 3.31.
  5668.  
  5669.     * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
  5670.  
  5671.     * make.texinfo (Options/Recursion): -d and -p go in the environment.
  5672.  
  5673.     * load.c: Include "commands.h".
  5674.  
  5675. Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5676.  
  5677.     * make.c (switches): -d and -p can come from the environment and are
  5678.     put into it.
  5679.  
  5680.     * read.c (record_files): Fixed the checking for duplicate deps so it
  5681.     doesn't clobber the first one.
  5682.  
  5683.     * make.texinfo: Documented default implicit rule changes.
  5684.  
  5685.     * rule.c: Revamped default suffix rules.  They now use Sun's style
  5686.     of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
  5687.     use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
  5688.     Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
  5689.     Ratfor Yacc support is gone, since nobody has yacc -r.
  5690.     All EFL support is gone, since nobody uses EFL.
  5691.  
  5692.     * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
  5693.  
  5694.     * commands.c [USG]: Fixed wait status bit encoding.
  5695.     [USG and not USGr3] (dup2): Define this for SysVr2.
  5696.  
  5697.     * make.h, dep.h, make.c [iAPX286]: Make allowances for this
  5698.     brain-damaged compiler.
  5699.  
  5700.     * make.texinfo (Variables: Flavors): Fixed a typo.
  5701.  
  5702. Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5703.  
  5704.     * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
  5705.  
  5706.     * Version 3.30.
  5707.  
  5708.     * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
  5709.     and wait3 even if USG.
  5710.  
  5711.     * read.c (record_files): Defining .DEFAULT with no deps or commands
  5712.     clears its commands.
  5713.  
  5714.     * rule.c (default_suffixes): Added `.sh'.
  5715.     (default_suffix_rules): Added single-suffix .sh rule, copies source
  5716.     to target and makes target executable.
  5717.     make.texinfo (Catalogue of Rules): Documented .sh rule and its use
  5718.     in conjunction with SCCS.
  5719.  
  5720.     * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
  5721.     default list ("" under -r).
  5722.     make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
  5723.  
  5724.     * rule.c (default_variables), make.texinfo (Implicit Variables):
  5725.     Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
  5726.  
  5727.     * rule.c (install_default_pattern_rules): Default variables are made
  5728.     recursive.
  5729.     (default_variables): Added "CPP", defined to "$(CC) -E".
  5730.     (default_suffixes): Added `.S', before `.s'.
  5731.     (default_suffix_rules): New rule for .S to .s, runs CPP.
  5732.     All rules that use CPP now include "$(CPPFLAGS)".
  5733.     make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
  5734.     Documented above changes.
  5735.  
  5736.     * commands.c [USG] (sys_siglist): Don't define.
  5737.     [USG] (init_siglist): New function to initialize sys_siglist.
  5738.  
  5739.     * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
  5740.     references.
  5741.  
  5742.     * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
  5743.     equivalent to `$(patsubst PAT,SUB,$(foo))'.
  5744.  
  5745.     * variable.c (variable_expand): Free the storage for the expansion
  5746.     of a recursive variable when it is nod longer needed.
  5747.  
  5748.     * variable.c (variable_expand): When checking for `$($(foo))', use
  5749.     lindex so as not to search for the second `$' outside the parens.
  5750.  
  5751.     * make.c (struct stringlist, main, decode_switches): Changed `index'
  5752.     member to `idx'.
  5753.  
  5754. Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5755.  
  5756.     * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
  5757.     rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
  5758.  
  5759.     * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
  5760.     (ar_scan [USGr3]): Remove trailing slashes from member names.
  5761.  
  5762. Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5763.  
  5764.     * make.texinfo (Makefiles: Overriding Makefiles): New node
  5765.     documenting use of .DEFAULT to have one makefile defer unmakeable
  5766.     targets to another.
  5767.  
  5768.     * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
  5769.     Mention empty commands and xref node `Empty Commands'.
  5770.  
  5771. Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5772.  
  5773.     * Version 3.29.
  5774.  
  5775.     * make.c (struct command_switch, command_switches, et al): New
  5776.     member `noarg_value', if not nil, ptr to value to use if no arg is
  5777.     given to a switch that would otherwise require one.  The -j option
  5778.     can now be given w/o an arg, to mean infinite jobs.
  5779.     * commands.c: If job_slots is zero, infinite jobs.
  5780.  
  5781.     * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
  5782.  
  5783.     * make.c (decode_switches): For a positive_int or floating option,
  5784.     if we moved to the next argument word, but found no argument for the
  5785.     option, move back to the correct word.
  5786.  
  5787.     * make.c (decode_switches): If we got any unknown options, die after
  5788.     processing all arguments.
  5789.  
  5790.     * GNUmakefile: Moved `include depend' to the end, so the default
  5791.     goal will be set before then.
  5792.  
  5793.     * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
  5794.     under #ifdef LDAV_BASED.  Only loop while we have jobs running.
  5795.     Sleep for increasing amounts (increase one second per iteration)
  5796.     before checking the load average (after the first check).
  5797.     Get the load average from function load_average.
  5798.     (wait_to_start_job [not LDAV_BASED]): Always return.
  5799.     (load_average [UMAX]): Fetch load average for Encore UMAX.
  5800.     (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
  5801.     [not NO_LDAV]: Define LDAV_BASED.
  5802.  
  5803. Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5804.  
  5805.     * Version 3.28.
  5806.  
  5807.     * commands.c (wait_for_children): Take second arg, ERROR.  If
  5808.     nonzero, and there are children, print a message on stderr.
  5809.     (execute_file_commands, fatal_error_signal): Pass second arg.
  5810.     * make.c (die), remake.c (update_goal_chain), variable.c
  5811.     (expand_function: `shell'): Ditto.
  5812.  
  5813. Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5814.  
  5815.     * commands.c (start_job): Call wait_to_start_job before forking.
  5816.  
  5817.     * load.c (load_average): Converted to wait_to_start_job.
  5818.  
  5819.     * remote.c: New file for remote execution functions.
  5820.     (start_remote_job_p): Return nonzero if the next job should be run
  5821.     remotely.
  5822.     (start_remote_job): Start a remote job and return an ID for it.
  5823.     (remote_status): Get status of dead remote children.
  5824.  
  5825. Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  5826.  
  5827.     * commands.c (start_job): If start_remote_job_p () returns nonzero,
  5828.     call start_remote_job to start the job rather than fork and exec.
  5829.     (child_handler):
  5830.  
  5831.     * commands.c (execute_file_commands): Moved load average checking to
  5832.     start_job.
  5833.  
  5834.     * commands.c (child_handler: USG): Record the pid wait returns.
  5835.  
  5836.     * load.c (UMAX): Added some #include's needed for UMAX.
  5837.  
  5838.     * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
  5839.     -1 return from glob_filename.
  5840.  
  5841.     * variable.c (variable_expand): Make sure we don't increment past
  5842.     the end of the string we were passed.
  5843.  
  5844.     * variable.c (variable_expand): Terminate the expansion.
  5845.  
  5846.     * file.c (rename_file): If there is already a file under the new
  5847.     name, set its contents equal to FILE's (ick).
  5848.  
  5849.     * variable.c (define_automatic_variables): Pass all the args to
  5850.     define_variable when defining MAKELEVEL!
  5851.  
  5852.     * commands.c (execute_file_commands): If max_load_average > 0, and
  5853.     we have children running, don't start up another child until the
  5854.     load average goes below max_load_average.
  5855.  
  5856.     * make.c: New variable `max_load_average'.
  5857.     (struct command_switch, decode_switches, decode_env_switches):
  5858.     Handle floating-point (double) args.
  5859.     (command_switches): Added `-l' switch to set `max_load_average'.
  5860.  
  5861.     * load.c (load_average): New file and function to return a double
  5862.     that is the current load average (1.00 scale).
  5863.     * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
  5864.  
  5865. Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5866.  
  5867.     * Makefile: Renamed to oldMakefile.
  5868.     * GNUmakefile: Make Makefile from oldMakefile and depend.
  5869.  
  5870.     * read.c (read_all_makefiles): When putting the default makefiles in
  5871.     the read_makefiles chain so they will be remade, put them in the
  5872.     right order.
  5873.  
  5874.     * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
  5875.     in serial, and return as soon as one goal whose `changed' member is
  5876.     nonzero  is successfully remade.
  5877.  
  5878.     * commands.c: Don't include <sys/fcntl.h>.
  5879.  
  5880.     * commands.c (construct_command_argv): Added ` to sh_chars.
  5881.  
  5882.     * make.h: Don't declare construct_makeflags.
  5883.  
  5884.     * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
  5885.     both before and after reading the makefiles, so the makefiles can
  5886.     use them and possible change them, and later children will get the
  5887.     right information.
  5888.     (construct_makeflags): Replaced with define_makeflags (static void),
  5889.     which defines the two variables.
  5890.     * variable.c (define_automatic_variables): Don't define MAKEFLAGS
  5891.     and MFLAGS.
  5892.  
  5893. Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5894.  
  5895.     * Version 3.27.
  5896.  
  5897.     * commands.c (child_handler): Reset the handler to ourselves when
  5898.     called for USG, since it has no safe signals.
  5899.  
  5900.     * commands.c: For USG, use an int rather than a `union wait' for
  5901.     wait calls, and dissect it with bitmasks.
  5902.     (child_handler): No wait3 system call in USG.  Since we can't
  5903.     protect from hanging, always return immediately if we have no
  5904.     children we know about and we're not running a `shell' function.
  5905.     (There is still the danger of hanging waiting for a child that died
  5906.     without our being notified.)
  5907.  
  5908.     * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
  5909.     is really in <fcntl.h>, and while BSD <sys/file.h> includes
  5910.     <fcntl.h>, USG doesn't.
  5911.  
  5912.     * make.c (main): Figure out the program name before doing anything
  5913.     which might need it (in a call to error or fatal).
  5914.  
  5915.     * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
  5916.  
  5917.     * arscan.c (ar_scan): Added missing & before buf (which is an int)
  5918.     if SARMAG is not defined (SysV).
  5919.  
  5920. Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5921.  
  5922.     * Version 3.26.
  5923.  
  5924.     * dir.c (find_directory, dir_file_exists_p): Keep track of how many
  5925.     directories we have open and don't let it be more than
  5926.     MAX_OPEN_DIRECTORIES (currently 10).
  5927.  
  5928.     * variable.c (expand_function: `foreach'): Use expand_argument
  5929.     rather than variable_expand so each repetition doesn't clobber the
  5930.     last!!!
  5931.  
  5932. Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  5933.  
  5934.     * Version 3.25.
  5935.  
  5936.     * Makefile: Define `install' target.
  5937.  
  5938.     * GNUmakefile: Don't include GNUmakefile or depend in the
  5939.     distribution file.
  5940.  
  5941. Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5942.  
  5943.     * commands.c (execute_file_commands): Don't clobber a null into
  5944.     random storage if there were no $^ and/or $? words.
  5945.  
  5946.     * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
  5947.     doesn't exist.
  5948.  
  5949.     * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
  5950.     archive file itself is known before we fetch or change the modtime
  5951.     of one of its members.
  5952.  
  5953.     * read.c (read_makefile): Expand variable and function references
  5954.     before parsing rules so variable can contain special characters
  5955.     (colons and semicolons).
  5956.  
  5957. Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5958.  
  5959.     * variable.c (expand_function: `filter', `filter-out'): Fixed so
  5960.     that filter-out works right.
  5961.  
  5962.     * variable.c (expand_function: `filter', `filter-out'): Made these
  5963.     functions use each word of their first argument as a pattern.
  5964.  
  5965. Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5966.  
  5967.     * Version 3.24.
  5968.  
  5969.     * read.c (record_files): If a target is listed more than once in a
  5970.     single rule (that defines commands), give a warning message rather
  5971.     than the counter-intuitive message saying commands were already
  5972.     defined (in the same place).
  5973.  
  5974.     * make.c (fatal, error): Made them both take 6 args since there is
  5975.     at least one error message that need that many.  Too bad vfprintf is
  5976.     not universal!
  5977.  
  5978.     * Version 3.23.
  5979.  
  5980.     * read.c (read_makefile): Moved the construction of the `struct
  5981.     commands' into record_files.  Call record_files before recursing for an
  5982.     included makefile so the higher-up will determine the default goal.
  5983.     (record_files): Take arguments COMMANDS, COMMANDS_IDX and
  5984.     COMMANDS_STARTED and construct a `struct commands.
  5985.  
  5986. Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5987.  
  5988.     * Version 3.22.
  5989.  
  5990.     * make.c (main): Made it a fatal error if we can't move back to the
  5991.     directory we started in before re-execing.
  5992.  
  5993.     * make.c (main): Get the current directory before doing anything
  5994.     else, so we know it even if we don't need it for the value of
  5995.     `MAKE', since we might want it when re-execing.
  5996.  
  5997. Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5998.  
  5999.     * Version 3.21.
  6000.  
  6001.     * read.c (record_files): Eliminate duplicate deps in a chain.
  6002.  
  6003.     * variable.c (expand_function: `sort'): Pass the right number to
  6004.     qsort, not one less.
  6005.  
  6006.     * remake.c (remake_file): Always call notice_finished_file if
  6007.     FILE->command_state == cs_finished.
  6008.  
  6009.     * commands.c (execute_file_commands): Call notice_finished_file to
  6010.     set FILE's status correctly when start_job fails (because it's out
  6011.     of commands or running under -n).
  6012.  
  6013. Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  6014.  
  6015.     * Version 3.20.
  6016.  
  6017.     * remake.c (update_file_1): Set the `update_status' of FILE to
  6018.     nonzero and set FILE's `updated' bit if we have decided to give up
  6019.     on remaking FILE because of errors in the dependencies.
  6020.  
  6021.     * rule.c (pattern_search): Debugging messages use `dependency' (vs.
  6022.     `dependent') properly.
  6023.  
  6024.     * make.texinfo (Conditionals: Conditional Syntax): Function index
  6025.     entries for `ifndef' and `ifneq'.
  6026.  
  6027.     * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
  6028.     decimal number of the makelevel, since it may be malformed or blank.
  6029.  
  6030.     * remake.c (remake_file): Call notice_finished_file after touching.
  6031.  
  6032. Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6033.  
  6034.     * Version 3.19.
  6035.  
  6036.     * GNUmakefile (dist): Pass the `-f' flag to compress.
  6037.  
  6038.     * vpath.c (build_vpath_lists): Check for VPATHS being nil after
  6039.     constructing the general VPATH list from the `VPATH' variable.
  6040.  
  6041. Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6042.  
  6043.     * make.c (fatal, error): Made error messages for recursive runs be
  6044.     shorter.
  6045.  
  6046. Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  6047.  
  6048.     * Version 3.18.
  6049.  
  6050.     * read.c (read_makefile): Made it eat leading spaces and formfeeds
  6051.     (but not tabs), like it's documented to.
  6052.  
  6053.     * read.c (read_makefile): Let included makefiles determine the
  6054.     default goal, as is done by System V Make.
  6055.  
  6056. Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6057.  
  6058.     * variable.c (new_environ): Don't increment VCNT when a variable is
  6059.     rejected.
  6060.  
  6061. Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  6062.  
  6063.     * Version 3.17.
  6064.  
  6065.     * rule.c (convert_to_pattern): Don't use the same storage for a name
  6066.     in two rules since new_pattern_rule may free this storage when a
  6067.     rule is discarded.
  6068.  
  6069.     * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
  6070.  
  6071. Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6072.  
  6073.     * Version 3.16.
  6074.  
  6075.     * GNUmakefile, Makefile: Fixed a typo in a comment.
  6076.     * Makefile: Removed malloc.o from object file list.
  6077.  
  6078.     * variable.c: Removed old debugging #define's for xmalloc and
  6079.     xrealloc so non-ANSI cpp's won't barf.
  6080.  
  6081.     * make.c (main): Made local array for temp file name static so
  6082.     compilers that don't do auto aggregate initialization won't barf.
  6083.  
  6084.     * read.c: Removed static declaration of copy_dep_chain since it is
  6085.     no longer static.
  6086.  
  6087. Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6088.  
  6089.     * rule.c (new_pattern_rule): If we threw out the new rule because it
  6090.     matched an old one and OVERRIDE was zero, don't put the freed
  6091.     pointer in the chain!
  6092.  
  6093. Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6094.  
  6095.     * Version 3.15.
  6096.  
  6097.     * variable.c (expand_function: `sort'): Don't do the sorting and
  6098.     writing out if there were no words in the first place.
  6099.  
  6100.     * remake.c (remake_file): Only fail with a "no way to make" message
  6101.     for a dependency (non-target) file.  If we don't know how to remake
  6102.     a target file, pretend it was successfully remade and is very new.
  6103.  
  6104.     * remake.c (remake_file): Don't increment `files_remade' for a
  6105.     non-target file we don't know how to remake.
  6106.  
  6107.     * read.c (record_files): Don't die with "both : and :: entries" for
  6108.     a file whose `is_target' flag is not set.
  6109.  
  6110. Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6111.  
  6112.     * variable.c (expand_function: `patsubst', `subst'): Free the right
  6113.     things!
  6114.  
  6115.     * variable.c (expand_function: `subst'): Don't clobber the
  6116.     pointer to the end of the second arg and then try to use it!!!
  6117.  
  6118. Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  6119.  
  6120.     * variable.c (expand_function: `patsubst'): Don't clobber the
  6121.     pointer to the end of the second arg and then try to use it!!!
  6122.  
  6123.     * variable.c (expand_function: `word' function): Made it parse its
  6124.     second argument correctly.
  6125.  
  6126.     * ar.c (ar_touch): Return 1 rather than -1 for on errors.
  6127.  
  6128. Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  6129.  
  6130.     * Version 3.14.
  6131.  
  6132.     * GNUmakefile: Removed explicit rule for make.dvi since the built-in
  6133.     implicit rule now works.
  6134.  
  6135.     * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
  6136.     so that it really works, now that parens are counted.
  6137.  
  6138.     * remake.c (update_file_1): Set FILE's `updated' flag after calling
  6139.     remake_file if it failed or finished immediately.
  6140.  
  6141.     * remake.c (update_file): Use the `updated' flag rather than the
  6142.     command state to decide if a file was fully considered, and
  6143.     therefore might give an "up to date" message.
  6144.  
  6145.     * variable.c (expand_function): Made all functions that take more
  6146.     than one argument count parens of the appropriate flavor in their
  6147.     args and ignore commands nested in parens.
  6148.  
  6149. Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6150.  
  6151.     * read.c (read_all_makefiles): Pass second arg to read_makefile for
  6152.     default makefiles.
  6153.  
  6154. Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6155.  
  6156.     * Version 3.13.
  6157.  
  6158.     * GNUmakefile: Added an explicit rule for make.dvi since the
  6159.     built-in .texinfo.dvi implicit rule is screwed up.
  6160.  
  6161.     * rule.c (default_suffix_rules): Added a comment that the
  6162.     .texinfo.dvi rule does not work because of an ahem, feature of Make
  6163.     that at some point will be fixed--er, enhanced to alleviate this
  6164.     difficulty.
  6165.  
  6166.     * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
  6167.  
  6168.     * make.texinfo (Commands: Execution): Documented new competing for
  6169.     standard input among children.
  6170.  
  6171.     * commands.c (struct child): Added `good_stdin' flag to tell if this
  6172.     child has the stdin that doesn't point into nirvana.
  6173.     (good_stdin_used): New variable to tell if any child has the good
  6174.     standard input.
  6175.     (child_handler): Reset `good_stdin_used' if a dead child's
  6176.     `good_stdin' flag is set.
  6177.     (start_job): Give the new child the good standard input if
  6178.     `good_stdin_used' is no set, and set the child's `good_stdin' flag
  6179.     appropriately.
  6180.  
  6181.     * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
  6182.     better (I hope).
  6183.  
  6184.     * read.c (read_all_makefiles): Stop reading default makefiles after
  6185.     one is found.
  6186.  
  6187.     * read.c (read_makefile): Reset `reading_filename' and
  6188.     `reading_lineno_ptr' after recursing for an included makefile.
  6189.  
  6190.     * GNUmakefile: New GNU Make-specific makefile that does everything
  6191.     Makefile does plus distribution stuff, and doesn't contain any hacks
  6192.     to try to work with Unix make.
  6193.  
  6194.     * Makefile: Removed distribution stuff.
  6195.  
  6196.     * make.c (main): Use mktemp to construct the names of temporary
  6197.     files used for standard input makefiles.
  6198.  
  6199.     * make.c (main): Don't turn standard input into a broken pipe.
  6200.  
  6201.     * commands.c (start_job): Keep two extra file descriptors around: a
  6202.     good standard input, and a bad one that reads from a broken pipe.
  6203.     On the child side of the fork, if there are other children, give
  6204.     this one the broken pipe so they won't compete; if this is the only
  6205.     one, give it the good standard input.
  6206.  
  6207.     * make.h: Declare notice_finished_file.
  6208.  
  6209.     * commands.c (execute_file_commands): Use noticed_finished_file
  6210.     after waiting for the child when there is only one job slot.
  6211.  
  6212.     * remake.c (notice_finished_file): New function to re-check mtime's
  6213.     and such things to be done when commands finish.
  6214.     (update_file_1): Use notice_finished_file.
  6215.  
  6216.     * commands.c (child_handler, execute_file_commands): Use new
  6217.     variable `job_slots_used' to record the number of jobs currently
  6218.     running, rather than diddling with `job_slots'.
  6219.     (execute_file_commands): Increment `job_slots_used' before calling
  6220.     start_job and decrement it on failure to avoid race condition.
  6221.     If there is only one job slot, wait for the child to finish and
  6222.     return its status so commands are run in linear order, as if there
  6223.     were no parallelism.
  6224.  
  6225. Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6226.  
  6227.     * remake.c (remake_file): Don't print a "No way to make" message for
  6228.     targets whose `dontcare' flags are set.
  6229.  
  6230.     * read.c (read_all_makefiles): Set the `dontcare' flag of the
  6231.     `struct file' each default makefile added to the chain.
  6232.  
  6233.     * file.h (struct file): Add `dontcare' member.
  6234.  
  6235.     * read.c (read_all_makefiles): When no default makefiles are found,
  6236.     put the names of all those tried in the `read_makefiles' chain so
  6237.     they will be updated if possible, giving their `struct dep's'
  6238.     `changed' members the value of 0 so we won't care if they cannot be
  6239.     found or remade.
  6240.  
  6241.     * make.texinfo (Makefiles: Remaking Makefiles): Documented that
  6242.     default makefiles will be remade if not found.
  6243.  
  6244.     * read.c (read_all_makefiles): If no default makefiles can be found,
  6245.     go through the list of default names, trying to make one, stopping
  6246.     if one is made.
  6247.  
  6248.     * remake.c (remake_file): Set STATUS to 0 after successfully touching.
  6249.  
  6250.     * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
  6251.     to "" and then try to to a strcmp on it!!!
  6252.  
  6253. Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
  6254.  
  6255.     * make.c (main): Don't do `dir_load (".")'.
  6256.  
  6257.     * rule.c (count_implicit_rule_limits), vpath.c
  6258.     (construct_vpath_list): Test the existence of a given directory by
  6259.     `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
  6260.     it means the directory really does not exist.
  6261.  
  6262.     * dir.c (struct dirdata): Replaced with `struct directory' for
  6263.     directories, each containing a chain of `struct dirfiles', one for
  6264.     each file (real or impossible).
  6265.     (dir_load): Removed.
  6266.     (find_directory): New function to find the `struct directory' for a
  6267.     named directory and return it (possibly creating a new one).
  6268.     (dir_file_exists_p): Read the directory on the fly if its stream is
  6269.     still valid (and ever was) if the file we're looking for is not
  6270.     already in the hash tables.
  6271.     (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
  6272.     Use the new directory/file scheme.
  6273.  
  6274.     * make.texinfo: Miscellaneous editorial changes and clarifiactions.
  6275.  
  6276.     * commands.c (struct child): Remove `environ' member.
  6277.     (child_handler, start_job, execute_file_commands): Remove use of
  6278.     `environ' member and new_environ.
  6279.  
  6280.     * make.c (main): Call new_environ after reading makefiles.
  6281.  
  6282.     * variable.h: Declare `new_environ' to return void.
  6283.  
  6284.     * variable.c (new_environ): Put the environment in `environ' and
  6285.     return void.
  6286.  
  6287. Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6288.  
  6289.     * Version 3.12.
  6290.  
  6291.     * Makefile: Don't make the uncompressed tar file.
  6292.  
  6293.     * variable.c (expand_function: `shell' function): Made it not expect
  6294.     read to null-terminate the buffer.
  6295.  
  6296.     * Makefile: Made it use a temporary symlink to . rather than a
  6297.     temporary directory to make the distribution tar file.
  6298.  
  6299. Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6300.  
  6301.     * Version 3.11.
  6302.  
  6303.     * make.texinfo: Fixed a line that got garbaged somehow.
  6304.  
  6305. Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6306.  
  6307.     * make.c (main): Try to move back to the directory we started in
  6308.     before re-exec ourself.
  6309.  
  6310.     * remake.c (update_file_1): A double-colon target with no deps
  6311.     always needs to be remade.
  6312.  
  6313.     * remake.c (remake_file): Changed "No way to make" message to say
  6314.     `target' rather than `file'.
  6315.  
  6316. Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  6317.  
  6318.     * remake.c (update_file_1): Set FILE->update_status to the return
  6319.     value of remake_file.
  6320.  
  6321.     * rule.c (convert_to_pattern): Fixed swapped lengths passed to
  6322.     xmalloc for source/target suffixes.
  6323.  
  6324.     * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
  6325.     from makefiles.  Updated the `Features' section a bit.
  6326.  
  6327.     * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
  6328.     after reading in makefiles.
  6329.  
  6330.     * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
  6331.     /tmp/foo" in front of temp files made for stdin makefiles.
  6332.  
  6333.     * remake.c (update_file): Test the state of the right `struct file'
  6334.     for double-colon files.
  6335.  
  6336.     * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
  6337.     files made for stdin makefiles so they won't be remade when we
  6338.     re-exec.  Kludge-o-matic!!
  6339.  
  6340.     * remake.c (update_goal_chain): Judge files as being finished based
  6341.     on their `updated' flag, not their state.
  6342.  
  6343.     * read.c (read_makefile): Don't check for FILENAME being "-".
  6344.     (read_all_makefiles): Set each element of MAKEFILES to the name put
  6345.     in READ_MAKEFILES by read_makefile, since read_makefile may free the
  6346.     storage for the name it is passed, and someone might want to look at
  6347.     the elements of MAKEFILES again.
  6348.  
  6349.     * make.c (main): For each `-f' flag with arg `-' (standard input),
  6350.     read standard input into a temp file and pass the temp file's name
  6351.     to read_all_makefiles, after making sure it will not be remade.
  6352.  
  6353.     * make.c (construct_makeflags): Always put out `-j1'.
  6354.  
  6355. Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6356.  
  6357.     * commands.c (execute_file_commands): If commands are nothing but
  6358.     whitespace, set the state to `cs_finished' before returning 0.
  6359.  
  6360.     * make.c (decode_switches): Allocate space for args in stringlists
  6361.     so they can be freed later.
  6362.  
  6363.     * make.h: Declare `makelevel'.
  6364.  
  6365.     * variable.c (makelevel): Moved to make.c (and made global).
  6366.  
  6367.     * make.c (fatal, error): Print the makelevel if it's > 0.
  6368.     (perror_with_name): Use error rather than calling fprintf directly.
  6369.     (pfatal_with_name): Use fatal rather than fprintf and die.
  6370.  
  6371.     * variable.c (new_environ): Don't put default variables (origin
  6372.     `o_default') into the environment; they just take up space.
  6373.  
  6374.     * read.c (read_makefile): Don't add FILENAME to the chain of read
  6375.     makefiles if it's "-" (standard input).
  6376.  
  6377.     * remake.c (update_goal_chain): Set STATUS correctly when nothing
  6378.     happens (as well as in all other situations).
  6379.  
  6380.     * make.c (construct_makeflags): Put a `-' before each switch and
  6381.     spaces between them.
  6382.  
  6383.     * Version 3.10.
  6384.  
  6385.     * commands.c (wait_for_children): Don't check if `children' is nil.
  6386.     This is the case when waiting for the child of a `shell' function.
  6387.  
  6388.     * dir.c (dir_load): Don't add a hash-table entry for directory
  6389.     DIRNAME and filename "" if DIRNAME doesn't exist.
  6390.  
  6391.     * commands.c (execute_file_commands): Return 0 after start_job
  6392.     returns 1 (failure) under the -n flag.
  6393.  
  6394.     * remake.c (remake_file): Set the state to `cs_finished' when not
  6395.     calling execute_file_commands.
  6396.  
  6397.     * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
  6398.     meaning to disable -t, -q, and -n for each target unless the target
  6399.     was also given on the command-line.
  6400.  
  6401.     * read.c (read_makefile): Enter the `struct file's for the makefiles
  6402.     added to the `read_makefiles' `struct dep' chain.
  6403.  
  6404.     * remake.c (update_goal_chain): Made it not enter the files for the
  6405.     goals in the chain.  It will already have been done.
  6406.  
  6407.     * rule.c (convert_to_pattern): Null-terminate the names of targets
  6408.     and deps of the pattern rules properly.
  6409.  
  6410. Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  6411.  
  6412.     * make.c (main): Call install_default_pattern_rules.
  6413.  
  6414.     * make.h: Declare copy_dep_chain.
  6415.  
  6416.     * read.c (copy_dep_chain): Moved to make.c (and made global).
  6417.  
  6418.     * make.c (main): Call update_goal_chain to update goals.
  6419.     Update read makefiles and re-exec self if they change.
  6420.  
  6421.     * remake.c (update_file): Make this function static.
  6422.     (update_goal_chain): New function to update a `struct dep' chain of
  6423.     goals, waiting until they are all finished before returning.
  6424.  
  6425.     * make.h: Don't declare update_file.  Declare update_goal_chain.
  6426.  
  6427.     * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
  6428.  
  6429.     * read.c (find_makefile): Removed this function.
  6430.     (read_all_makefiles): Don't update makefiles, don't diddle with
  6431.     pattern rules, don't call snap_deps, etc.  Return a `struct dep'
  6432.     chain of all makefiles read.
  6433.     (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
  6434.     for a normal makefile, 1 for MAKEFILES variable or 2 for an included
  6435.     makefile.  Add a `struct dep' containing the name of the makefile
  6436.     (as it was found in the search path for type 2s), and TYPE in the
  6437.     `changed' member to the global `read_makefiles' chain.
  6438.  
  6439.     * make.h, rule.c (displace_pattern_rules,
  6440.     add_displaced_pattern_rules): Removed these functions.
  6441.  
  6442.     * read.c (read_makefile): Variable-expand the name of an `include'd
  6443.     makefile before calling find_makefile on it.
  6444.  
  6445.     * file.c (snap_deps): If the `struct file' for a `struct dep'
  6446.     already exists, free the `struct dep's `name' member before setting
  6447.     it to nil (since this info is in the `struct file').
  6448.  
  6449.     * read.c (copy_dep_chain): Made it copy each name rather than
  6450.     leaving multiple `struct dep's with the same pointers.
  6451.  
  6452. Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  6453.  
  6454.     * make.c (decode_switches): Fixed second decode_env_switches call to
  6455.     use correct length of "MFLAGS" (6, not 5).
  6456.  
  6457.     * read.c (read_makefile): Don't stop reading when readline returns
  6458.     zero lines read.  Only stop when the stream reaches EOF.  This makes
  6459.     it recognize the last line of a makefile without a newline.
  6460.  
  6461.     * remake.c (remake_file): If we don't know how to make FILE, set its
  6462.     command state to `cs_finished'.
  6463.  
  6464.     * remake.c (update_file): Don't write the "up to date" message if
  6465.     update_file_1 returned a nonzero status.
  6466.  
  6467. Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  6468.  
  6469.     * commands.c (child_handler): Set the `update_status' member
  6470.     properly for ignored errors.
  6471.  
  6472.     * rule.c (convert_to_pattern): Made it not care about if the target
  6473.     suffix comes before the source suffix in the .SUFFIXES list.
  6474.  
  6475.     * make.texinfo: Misc editorial changes.
  6476.  
  6477.     * commands.c (wait_for_children): Return immediately if `children'
  6478.     is nil (there are no children).
  6479.  
  6480. Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6481.  
  6482.     * Version 3.09.
  6483.  
  6484.     * commands.c (struct child): New member `command_ptr' to hold the
  6485.     current position in the commands.  The `commands' member is never
  6486.     changed.
  6487.     (start_job, child_handler, execute_file_commands): Use new method
  6488.     for `commands' and `command_ptr' members.
  6489.  
  6490.     * make.c (decode_env_switches): Skip past an invalid letter (instead
  6491.     of looping forever).
  6492.  
  6493.     * commands.c (struct child): Add `environ' member to hold the
  6494.     environment for this child.
  6495.     (execute_file_commands): Get a new environment from new_environ and
  6496.     put in the the new `struct child's `environ' member.
  6497.     (child_handler): When freeing a child, free its `commands' member, the
  6498.     elements of its `environ' array and its `environ' member itself.
  6499.     (start_job): Set `environ' to the child's `environ' member before
  6500.     exec'ing the command.
  6501.  
  6502.     * variable.h, variable.c (new_environ): Made it return the new
  6503.     environment, not putting it in `environ'.
  6504.  
  6505.     * remake.c (update_file): Don't give a "is up to date" message
  6506.     unless no files were remade and the state went from `cs_not_started'
  6507.     to `cs_finished', so repeat calls to finish jobs won't get the message.
  6508.  
  6509. Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6510.  
  6511.     * Version 3.08.
  6512.  
  6513.     * make.texinfo (Commands: Execution): Documented that children will
  6514.     be waited for rather than killed.
  6515.  
  6516.     * commands.c (fatal_error_signal): Wait for children.
  6517.     (kill_children): Removed this function.
  6518.  
  6519.     * make.c (main, die): Wait for children to die, don't kill them.
  6520.  
  6521.     * variable.c (expand_function): Use wait_for_children.
  6522.  
  6523.     * make.c (main): Use wait_for_children rather than child_handler.
  6524.  
  6525.     * commands.c (wait_for_children): New function to block waiting for
  6526.     children, insuring that child_handler is not called recursively.
  6527.     (execute_file_commands, kill_children): Use wait_for_children.
  6528.  
  6529.     * commands.c (child_handler): Start up additional commands in a
  6530.     sequence after an ignored error.
  6531.  
  6532.     * remake.c (update_file): Don't print "`foo' is up to date" messages
  6533.     when update_file_1 returns while commands are executing.
  6534.  
  6535.     * remake.c (update_file_1): Pass the file name to name_mtime, not
  6536.     the bloody `struct file', dammit!!
  6537.  
  6538.     * commands.c (child_handler): Print out the "*** ..." error message
  6539.     when not under -i.  (I somehow forgot this.)
  6540.  
  6541.     * remake.c (update_file_1): Use name_mtime rather than file_mtime to
  6542.     re-get the mtime of a file whose commands have finished.
  6543.  
  6544.     * make.c (command_switches, decode_switches, decode_env_switches):
  6545.     Make all switches that take string args allow them right after the
  6546.     switch letter.
  6547.  
  6548.     * commands.c (child_handler): Check for a child being the `shell'
  6549.     function's command returning and set the global variable for
  6550.     expand_function to check.
  6551.  
  6552.     * variable.c (expand_function): For the `shell' function, instead of
  6553.     waiting for the child shell ourselves, let child_handler do it and
  6554.     loop around waiting for something to happen.
  6555.  
  6556.     * make.c (print_version): Made the copyright year static, not dynamic.
  6557.  
  6558.     * make.h, make.c: Remove construct_argv function.
  6559.  
  6560.     * make.c (main): Say "no goal target" instead of "no target".
  6561.  
  6562.     * make.texinfo (Commands: Parallel): Don't send SIGKILL.
  6563.  
  6564.     * commands.c (kill_children): Don't send SIGKILL to children that
  6565.     aren't killed by the first signal.
  6566.  
  6567.     * make.c (main), commands.c (kill_children): Decide between SIGCHLD
  6568.     and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
  6569.  
  6570.     * Makefile: Link make with $(LOADLIBES).
  6571.  
  6572.     * read.c (construct_include_path): Fixed another bad xrealloc call.
  6573.  
  6574.     * make.c (decode_switches): Fixed an xrealloc call with no first arg.
  6575.  
  6576. Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6577.  
  6578.     * Version 3.07.
  6579.  
  6580.     * remake.c (update_file_1): If deps are running, set state to
  6581.     `cs_deps_running' and return 0.  If deps are done, run commands.
  6582.  
  6583.     * commands.c (child_handler): Made it delete non-precious targets
  6584.     killed by fatal signals.
  6585.  
  6586.     * make.texinfo: Documented parallelism.
  6587.  
  6588. Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6589.  
  6590.     * remake.c (update_file_1): Don't return if FILE's state is
  6591.     `cs_deps_running'.  In that case, we need to run through and check
  6592.     the states of all our dependencies.
  6593.  
  6594.     * commands.c (execute_file_commands): Decrement `job_slots' after
  6595.     starting a new job to run file commands.
  6596.  
  6597.     * commands.c (start_job): Made it set the state to `cs_running'.
  6598.  
  6599.     * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
  6600.     goal-making loop.
  6601.  
  6602.     * commands.c (child_handler): When commands finish, set the
  6603.     corresponding file's `update_status' and `updated' flags as
  6604.     appropriate, and reset the modtimes of the file and any `also_make'
  6605.     files it has.
  6606.  
  6607.     * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
  6608.  
  6609.     * commands.c (fatal_error_signal): Don't swallow all the children
  6610.     with a loop around `wait ((union wait *) 0)'!!!
  6611.  
  6612.     * make.c (struct command_switch): Added `positive_int' type.
  6613.     (switches): Added -j (job_slots).
  6614.     (construct_makeflags, decode_switches, decode_env_switches):
  6615.     Handle`positive_int'-type switches.
  6616.  
  6617.     * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
  6618.     This is said to avoid a conflict with some system's global `vector'
  6619.     variable.
  6620.  
  6621.     * variable.c (expand_function): Made the `shell' function use
  6622.     construct_command_argv and do its own child control and piping.
  6623.  
  6624.     * make.c (main): Turn standard input into a broken pipe after
  6625.     reading in all makefiles (the last time it will be needed).
  6626.  
  6627.     * commands.c (struct child): Remove `pipe_fd' member.  We don't use
  6628.     pipes any more.
  6629.     (start_job): Return 0 for success, 1 or failure (rather than void).
  6630.     Don't use pipes.  Don't turn the child's stdin into a broken pipe.
  6631.     (child_handler): Print "*** Error" messages when necessary.
  6632.     Die on failed commands when -k was not given.
  6633.     (execute_file_commands): Check the return of start_job and remove
  6634.     the child from the chain and return failure if it is nonzero.
  6635.  
  6636.     * make.c (die): New function to clean up and exit.
  6637.     (fatal, pfatal_with_name): Use die.
  6638.  
  6639. Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6640.  
  6641.     * commands.c (struct child): Added `commands', `pipe_fd', and
  6642.     `noerror' members to keep track of info about a command thread.
  6643.     (start_job): New function to start a job and update the argument
  6644.     `struct child' to reflect its status.
  6645.     (execute_file_commands): Merged run_file_commands back in.
  6646.     Made it use new start_job function.
  6647.  
  6648.     * rule.c (freerule): Don't free the `struct commands' of the
  6649.     discarded rule.  It may be used in more than one place.
  6650.  
  6651.     * commands.c (execute_command_line): Made it not try to delete the
  6652.     possibly partly-made file.  The child_handler function will do this.
  6653.     (fatal_error_signal): Ditto + call kill_children.
  6654.  
  6655.     * make.h: Declare job_slots.
  6656.  
  6657.     * make.c (main): Collect goals in a dep chain and run through this
  6658.     chain waiting for a child, eliminating finished goals, updating all
  6659.     remaining goals, and quitting if they fail and not -k.
  6660.  
  6661.     * commands.c (child_handler): If called with SIG < 0, - SIG is the
  6662.     max number of children to bury.
  6663.  
  6664.     * commands.c (child_handler): If called with SIG as zero,
  6665.     block waiting for running children.
  6666.     (kill_children): Call child_handler with zero rather than SIGCHLD.
  6667.  
  6668.     * remake.c (update_file_1): Use the `command_state' member of FILE
  6669.     and its dependencies to determine what commands are running, what to
  6670.     do, etc.  If commands or dep commands are running when we are
  6671.     called, return success (0).  If commands finished since the last
  6672.     time we were called, return their status.
  6673.  
  6674.     * commands.h: Declare kill_children.
  6675.  
  6676.     * commands.c: Define `struct child' to keep track of child
  6677.     processes, with the chain in `children'.
  6678.     (child_handler): New function to catch child-termination signals
  6679.     (SIGCHLD, or SIGCLD for USG), store the returned status in the
  6680.     appropriate structure, take the now-obsolete `struct child' out of
  6681.     the chain, and free its storage.
  6682.     (execute_file_commands): Put all of the stuff invloving running the
  6683.     commands into new function run_file_commands.  Execute_file_commands
  6684.     now does process management for the commands, while
  6685.     run_file_commands (which is run in a subprocess) runs the commands.
  6686.     (kill_children): New function to kill all running children by
  6687.     sending them signal SIG.  If there are any children still living
  6688.     after they are all sent SIG, they are all sent SIGKILL.
  6689.  
  6690.     * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
  6691.  
  6692.     * commands.h: Declare child_handler function.
  6693.  
  6694.     * commands.c (execute_file_commands): Check the `command_state'
  6695.     member of FILE and return 0 if it is `cs_running' or
  6696.     `cs_deps_running' and return the stored status if it is `cs_finished'.
  6697.  
  6698.     * file.h (struct file): Added `command_state' member.
  6699.  
  6700.     * commands.c (execute_command_line): Add `$' to the list of
  6701.     characters special to the shell.
  6702.  
  6703. Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6704.  
  6705.     * read.c (read_all_makefiles): Call convert_to_pattern before
  6706.     recomputing the limits after adding the displaced rules.
  6707.  
  6708.     * make.c (main): Move calls to snap_deps, convert_to_pattern, and
  6709.     build_vpath_lists to read_all_makefiles.
  6710.  
  6711.     * read.c (read_all_makefiles): Install the default pattern rules
  6712.     before checking to remake the makefiles, displace these rules before
  6713.     reading in the makefiles, and then add the displaced rules to the
  6714.     chain after reading in all the makefiles.
  6715.  
  6716.     * make.c (main): Don't call install_default_pattern_rules or
  6717.     count_implicit_rule_limits.
  6718.  
  6719.     * make.h: Declare displace_pattern_rules and
  6720.     add_displaced_pattern_rules.
  6721.  
  6722.     * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
  6723.     functions to stow the chain and add the stowed chain on the end of
  6724.     the current chain.
  6725.  
  6726.     * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
  6727.  
  6728.     * make.c (main): Call construct_include_path right after decoding
  6729.     the switches.
  6730.  
  6731.     * read.c (find_makefile): Use rename_file.
  6732.  
  6733.     * file.h: Declare rename_file.
  6734.  
  6735.     * file.c (rename_file): New function to rename a `struct file' and
  6736.     put it in the correct hash bucket.
  6737.  
  6738.     * read.c (find_makefile): New function to find and update a makefile.
  6739.      (read_all_makefilese): Use find_makefile.
  6740.      (read_makefile): Don't do updating.  Removed UPDATEIT arg.
  6741.  
  6742.     * remake.c (update_file_1): Took out setting the `updated' member to
  6743.     -1 rather than 1 sometimes.
  6744.  
  6745.     * make.c (main): Made it print version info before doing anything else.
  6746.  
  6747.     * remake.c (library_file_mtime, f_mtime): Removed use of last two
  6748.     arguments to vpath_search.
  6749.  
  6750.     * rule.c (pattern_search): Removed use of last two arguments
  6751.     to vpath_search.
  6752.  
  6753.     * vpath.c (vpath_search, selective_vpath_search): Removed unused
  6754.     DIRPREFIX and DPLEN args.
  6755.  
  6756.     * read.c (read_makefile): Also turn off -n when updating makefiles.
  6757.  
  6758. Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6759.  
  6760.     * Makefile: Put tags files in the tarfile.
  6761.  
  6762.     * read.c (read_makefile): Get the modtime of the makefile via a stat
  6763.     call so that a later file_mtime call won't do VPATH search for it.
  6764.  
  6765.     * read.c (read_makefile): Don't turn off -t and -q if the makefile
  6766.     was a command-line target.
  6767.  
  6768.     * make.c (main): Enter command-line targets as files and set their
  6769.     `cmd_target' members.
  6770.  
  6771.     * file.h (struct file): Added `cmd_target' member.
  6772.  
  6773.     * read.c (read_makefile): Temporarily turn off -t and -q while
  6774.     updating makefiles.
  6775.  
  6776.     * make.c (main): Don't use arg 0 from other_args (which is now
  6777.     argv[0]; i.e., the program's name).
  6778.  
  6779.     * read.c (read_makefile): Only return nonzero if commands were
  6780.     actually run to remake the makefile.
  6781.  
  6782.     * remake.c (update_file_1): Set FILE->updated to -1 if no commands
  6783.     were actually run (because no update was done or -t was given).
  6784.  
  6785.     * make.c (decode_switches): Fixed bug wherein xrealloc was passed
  6786.     bad args if it tried to expand other_args->list.
  6787.  
  6788.     * read.c (read_all_makefiles): Made it not look at the `MAKE'
  6789.     variable, just use argv[0].
  6790.  
  6791. Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6792.  
  6793.     * read.c (rerun_make): New function to re-exec make.
  6794.  
  6795.     * make.c (construct_makeflags, construct_argv): New functions to
  6796.     construct the `MAKEFLAGS' variable and to construct an arg list from
  6797.     parsed info.
  6798.  
  6799.     * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
  6800.     update the makefile as a target before reading it in.  When reading
  6801.     included makefiles, pass this as zero.  Now returns nonzero if the
  6802.     makefile was updated, zero if not.
  6803.     (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
  6804.     for all default and -f makefiles and all makefiles from the
  6805.     `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
  6806.     self to re-read them.
  6807.  
  6808.     * remake.c (update_file): Print a "File `foo' up to date'" message
  6809.     under -p.
  6810.  
  6811.     * commands.c (execute_file_commands): Allocate one byte for each of
  6812.     $^ and $< rather than zero if they are to be empty.
  6813.  
  6814. Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6815.  
  6816.     * Version 3.06.
  6817.  
  6818.     * make.c (command_switches): Fixed entry for `-o' switch.
  6819.  
  6820.     * make.texinfo: Renamed -c switch to -C.
  6821.  
  6822.     * make.c: Renamed -c switch to -C.
  6823.  
  6824.     * Miscellaneous de-linting.
  6825.  
  6826.     * read.c (record_files): Made it not free the storage for the name
  6827.     if it started with `./' and was therefore not quite the same as in
  6828.     the `struct file'.
  6829.  
  6830.     * read.c (record_files): If commands were specified twice, the error
  6831.     message specifies in what files and at what line numbers.
  6832.  
  6833.     * make.c (main): If any of the signals we usually fatal on were
  6834.     ignored by the parent (probably a shell), ignore them.
  6835.  
  6836.     * make.c (main): Print version info for -v, -p, or -d.
  6837.     (print_data_base): Don't print version info.  It will be done in main.
  6838.  
  6839.     * variable.c: Increased number of hash buckets to 257.
  6840.  
  6841.     * file.c: Increased number of hash buckets to 1007.
  6842.  
  6843.     * rule.c (count_implicit_rule_limits): Moved comptation of
  6844.     `maxsuffix' to convert_to_pattern, since that function uses
  6845.     `maxsuffix', and must be called before count_implicit_rule_limits.
  6846.  
  6847.     * rule.c (pattern_search): If an existent (non-intermediate)
  6848.     dependendency was found via a terminal rule, set its
  6849.     `tried_implicit' flag, so it will never have implicit rule search done.
  6850.  
  6851.     * glob.c: Bug fix to avoid alloca(0).
  6852.  
  6853.     * arscan.c: USG and Sun386i fixes.
  6854.  
  6855. Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6856.  
  6857.     * make.texinfo: Fixed some typos and spelling errors.
  6858.  
  6859. Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6860.  
  6861.     * make.c (decode_switches): Fixed bug wherein a bad option would
  6862.     give a useless error message and loop forever.
  6863.  
  6864. Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6865.  
  6866.     * make.texinfo: Documented `shell' function.
  6867.  
  6868.     * variable.c (expand_function): New function `shell', does
  6869.     backquote-style command expansion of its arg.
  6870.  
  6871.     * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
  6872.     gets filled in with a malloc'd buffer containing the piped stdout of
  6873.     the command.
  6874.     (execute_file_commands): Use above (pass nil).
  6875.  
  6876. Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  6877.  
  6878.     * Makefile: Added copyright notice.
  6879.     Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
  6880.  
  6881.     * Version 3.05.
  6882.  
  6883.     * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
  6884.     switches if `NO_MINUS_C_MINUS_O' is #define'd.
  6885.  
  6886.     * make.texinfo: Documented `GNUmakefile'.
  6887.  
  6888.     * read.c (read_all_makefiles): Made it try default makefile
  6889.     `GNUmakefile' before others.
  6890.  
  6891.     * make.texinfo: Added new-style Texinfo header thingies.
  6892.  
  6893. Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  6894.  
  6895.     * Version 3.04.
  6896.  
  6897.     * make.texinfo (Chained Rules): Added a @cindex about using
  6898.     .PRECIOUS to preserve intermediate files.
  6899.  
  6900.     * remake.c (update_file_1): Made it not just return before executing
  6901.     commands under -p.
  6902.  
  6903.     * rule.c (default_pattern_rules, default_variables): Made it use
  6904.     `$(AR)' for `ar r' (to put files in archives).
  6905.  
  6906.     * vpath.c (build_vpath_lists): Made it recursively expand the
  6907.     `VPATH' variable (by using variable_expand instead of lookup_variable).
  6908.  
  6909.     * read.c (conditional_line): Made it not swallow whitespace after
  6910.     the comma in an `ifeq' using the `(a,b)' syntax.
  6911.  
  6912.     * rule.c (count_implicit_rule_limits): Made it not crash if a
  6913.     pattern rule dep begins with `/'.
  6914.  
  6915. Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  6916.  
  6917.     * make.texinfo: Clarified that the arg to the `origin' function is a
  6918.     variable *name*, not a reference.
  6919.  
  6920.     * make.texinfo: Clarified that both -Idir and -I dir are allowed.
  6921.  
  6922. Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6923.  
  6924.     * remake.c (remake_file): Made touching phonies work right.
  6925.  
  6926. Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  6927.  
  6928.     * make.texinfo: Removed reference to `RANLIB' variable.
  6929.  
  6930.     * Version 3.03.
  6931.  
  6932.     * variables.c (expand_function): Added `origin' function.
  6933.     * make.texinfo: Documented same.
  6934.  
  6935.     * read.c (record_files): Made double-colon entries work.
  6936.  
  6937. Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6938.  
  6939.     * make.c (collapse_continuations): Bug fix from RMS.
  6940.  
  6941.     * rule.c (install_default_pattern_rules): Made it set the
  6942.     `in_use' flag of the created rules to zero, rather than letting
  6943.     it be random garbage.
  6944.  
  6945.     * rule.c (pattern_search): Fixed putting `also make' targets into
  6946.     file strucutres.
  6947.  
  6948.     * read.c (record_files): Fixed bug which made double-colon entries
  6949.     make it read off into space.
  6950.  
  6951.     * make.c (decode_switches): Made it understand `ignored' switches
  6952.     rather than dumping core.
  6953.  
  6954. Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6955.  
  6956.     * read.c (read_makefile): Made `include' filenames be
  6957.     variable-expanded.
  6958.  
  6959.     * read.c (read_makefile): Fixed an error message.
  6960.  
  6961.     * read.c (read_makefile): Made it accept ^L's as whitespace.
  6962.     * make.c (next_token, end_of_token): Ditto.
  6963.  
  6964.     * vpath.c (vpath_search): Fixed it so that the general VPATH (from
  6965.     the variable) is always checked, even if a selective VPATH (from a
  6966.     directive) matched the filename.
  6967.  
  6968. Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6969.  
  6970.     * make.c (decode_switches, main): Made the command switches be
  6971.     processed from a table of switches, variables, and types.  No
  6972.     functions are passed argc and argv any more.  They are passed arrays
  6973.     of strings they need to process.
  6974.     * read.c (read_all_makefiles): Made it take an array rather than
  6975.     argc and argv.
  6976.     (construct_include_path): Ditto.
  6977.  
  6978.     * make.c (collapse_continuations): Made it work right (I hope).
  6979.  
  6980.     * make.texinfo: Minor editorial changes.
  6981.  
  6982.     * read.c (read_makefile): Minor speed improvement by freeing and
  6983.     then mallocing something rather than reallocing it to avoid the
  6984.     unnecessary bcopy.
  6985.  
  6986. Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6987.  
  6988.     * make.texinfo: Fixed some unquoted @'s.
  6989.  
  6990.     * make.texinfo: Documented multiple-target pattern rules.
  6991.     Miscellaneous minor editorial changes and corrections.
  6992.  
  6993.     * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
  6994.     variables.  That's what the next section is for.
  6995.     (Implicit: Implicit Variables): Made it agree with reality.
  6996.  
  6997. Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6998.  
  6999.     * variable.c (print_variable_data_base): Fixed bug which made -p
  7000.     dump core.  (This was a really idiotic bug.)
  7001.  
  7002.     * rule.c (pattern_search): Fixed a bug which made it make the
  7003.     `also_make' member of the file in question nil if the first of
  7004.     the successful rule's targets was the matching one.
  7005.     Made it use only as much storage as necessary in the `also_make'
  7006.     member.
  7007.     (create_pattern): Made it use only as much storage as necessary in
  7008.     the `lens' and `suffixes' members of the created rule.
  7009.  
  7010.     * remake.c (library_file_mtime): Made it `static'.
  7011.  
  7012.     * file.c: Added a declaration for `errno', which is declared in some
  7013.     <errno.h>'s, but not all.
  7014.  
  7015.     * file.h (struct file): Added `also_make' member for multiple-target
  7016.     implicit rules.
  7017.     * rule.c (pattern_search): Made it put the names of files updated by
  7018.     the given file's commands in its `also_make' member.
  7019.     * remake.c (update_file_1): Made it mark the files in a file's
  7020.     `also_make' member as updated when the file is updated.
  7021.  
  7022.     * variable.c (try_variable_definition): Fixed a bug which made it
  7023.     define a variable with the name of the whole definition when there
  7024.     was no space before the = or :=.
  7025.  
  7026.     * make.texinfo (Features): Made the changes which were made in RCS
  7027.     revision 2.7 but somehow lost since then.  Added -W.
  7028.  
  7029. Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7030.  
  7031.     * variable.h: Added `o_default' to `enum variable_origin'.
  7032.     * variable.c (print_variable_data_base): Made it print the origins of
  7033.     the variables.
  7034.     * rule.c (install_default_pattern_rules): Made it define the default
  7035.     variables with origin `o_default'.
  7036.  
  7037.     * make.texinfo: Documented -W.
  7038.  
  7039.     * make.c (decode_switches, main): Added the -W flag to give files a
  7040.     time-stamp of now, for a `what if' effect when used with -n.
  7041.  
  7042.     * commands.c (print_commands): Made it say `(built-in)' for commands
  7043.     that are built into the default ruleset.
  7044.  
  7045.     * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
  7046.     * rule.c (set_default_suffixes, convert_to_pattern): Made it read
  7047.     .SUFFIXES's deps frontwards, so the converted rules will not be in
  7048.     reverse order.
  7049.  
  7050.     * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
  7051.     searching after it had removed a matching rule and ended up diddling
  7052.     with freed storage.
  7053.  
  7054.     * rule.c (freerule): Made it take the given rule off the chain.
  7055.     (new_pattern_rule, count_implicit_rule_limits): Use freerule to
  7056.     remove rules from the chain.
  7057.  
  7058.     * vpath.c (construct_vpath_list): Made it return after cleaning out
  7059.     all previous searchpaths when given a nil DIRPATH arg, so it won't
  7060.     go into the construction code and dump core dereferencing a nil
  7061.     pointer.
  7062.  
  7063.     * variable.c (patsubst_expand): Fixed a bug which made it not match
  7064.     correctly and sometimes dump core.
  7065.  
  7066. Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7067.  
  7068.     * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
  7069.     the files used in the comparison to determine whether or not a
  7070.     second TeX run is necessary.
  7071.  
  7072.     * make.texinfo: Fixed some overfull TeX hboxes.
  7073.  
  7074.     * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
  7075.  
  7076.     * rule.c (create_pattern_rule): Fixed bug wherein index was not
  7077.     being passed its second arg.
  7078.  
  7079.     * read.c (getline): Merged back into readline.
  7080.  
  7081.     * rule.c (default_suffixes, default_suffix_rules,
  7082.     default_variables): Added .texinfo.info rule.
  7083.     * make.texinfo (Implicit: Catalogue of Rules): Documented
  7084.     .texinfo.dvi and .texinfo.info rules.
  7085.  
  7086.     * make.texinfo (Top): Changed `last updated' date to be correct (for
  7087.     the last time it was updated, not today).  Changed `for version
  7088.     3.00' since it's not going to be called that.
  7089.  
  7090. Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7091.  
  7092.     * commands.c (print_commands): Added this function to print the
  7093.     contents of a `struct commands' for -p.
  7094.     * rule.c (print_rule_data_base): Use above.
  7095.     * file.c (print_file_data_base): Ditto.
  7096.  
  7097.     * rule.c (count_implicit_rule_limits, new_pattern_rule,
  7098.     install_pattern_rule, print_rule_data_base): Made it understand the
  7099.     changed `struct rule' and act accordingly.
  7100.     (freerule): Added this function to free all the storage used by a rule.
  7101.  
  7102.     * rule.c (pattern_search): Made it grok multiple targets of pattern
  7103.     rules.  The matching is done properly, but at present, only the
  7104.     matching pattern's target is used to give deps and commands.
  7105.  
  7106. Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7107.  
  7108.     * rule.c (struct rule): Changed name, namelen, and patsuffix members
  7109.     to targets, lens, and suffixes, which are arrays, for multiple targets.
  7110.     (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
  7111.     array of targets, rather than a single target and patsuffix pointer.
  7112.  
  7113.     * read.c (record_files): If it finds an implicit pattern rule, it
  7114.     collects all the targets into an array and passes the whole thing to
  7115.     create_pattern_rule.  If there are non-pattern targets, it is a
  7116.     fatal error.
  7117.  
  7118. Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7119.  
  7120.     * make.c (readline): Split backslash-newline checking from reading
  7121.     and buffer-expanding.
  7122.     (getline): Created to do the reading and buffer-expanding formerly
  7123.     done in readline.
  7124.  
  7125.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  7126.     rules when a specific rule has matched, rather than rejecting
  7127.     terminal match-anything rules in this case.
  7128.  
  7129.     * rule.c (convert_to_pattern): Fixed a bug caused when the change to
  7130.     make it only recognize two-suffix rules whose target suffixes
  7131.     precede their dependency suffixes which made it work in the opposite
  7132.     direction (even worse than it started out).
  7133.  
  7134.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  7135.     rules as intermediate targets when searching for both real and
  7136.     intermediate dependencies, rather than only when searching for
  7137.     intermediate ones.
  7138.  
  7139. Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7140.  
  7141.     * rule.c (convert_to_pattern): Made it only recognize two-suffix
  7142.     rules whose target suffix comes before the dependency suffix in the
  7143.     .SUFFIXES list.
  7144.  
  7145.     * variable.c (define_automatic_variables): Made all automatic
  7146.     variables be defined with origin `o_automatic'.
  7147.  
  7148.     * variable.h: Added `o_automatic' to `enum variable_origin'
  7149.  
  7150.     * file.c (remove_intermediates): Made it not print an error message
  7151.     if the error was that the file does not exist.
  7152.  
  7153.     * rule.c: Removed `recursive' member from `struct rule'.
  7154.  
  7155.     * remake.c (library_file_mtime): Made it not use the directory hash
  7156.     functions, as reading in and hashing /usr/lib and /lib is slow and
  7157.     most likely unnecessary.
  7158.  
  7159.     * remake.c (remake_file): Changed message from ``No specification
  7160.     for making'' to ``No way to make'' so it will be short enough that
  7161.     most filenames will fit on a line.
  7162.     Made it look at the `recursive' member of the `struct commands',
  7163.     rather than of the `struct file' (which no longer has one).
  7164.  
  7165.     * commands.c (execute_file_commands): Made it look at the
  7166.     `recursive' member of the `struct commands', rather than of the
  7167.     `struct file' (which no longer has one).
  7168.  
  7169.     * file.h: Removed `recursive' member from `struct file'.
  7170.  
  7171.     * commands.h: Added `recursive' member to `struct commands'.
  7172.  
  7173.     * dep.h: Removed unused `quotedparen' member from `struct nameseq'
  7174.     and `struct dep'.
  7175.  
  7176.     * read.c (dequote): Removed this function.
  7177.     (multi_glob): Removed reference to `quotedparen' member of
  7178.     a `struct nameseq' and calls to dequote.
  7179.  
  7180.     * read.c (record_files): Made it set the stem for $* for all static
  7181.     pattern rules, not just those with commands given at that time.
  7182.     Removed check for recursive commands.
  7183.     Made it check for pairs of .SUFFIXES dependencies to reject as
  7184.     default goals as well as single ones (that don't start with dots).
  7185.     (read_makefile): Added checks for recursive commands to set
  7186.     the `recursive' flag in the `struct commands'.
  7187.  
  7188. Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7189.  
  7190.     * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
  7191.  
  7192.     * make.c: Removed `files_made' variable which is defined static in
  7193.     remake.c and used only there.
  7194.     (main): Cleaned up somewhat.
  7195.     (decode_switches): Cleaned up a bit.  Made an unknown option be a
  7196.     non-fatal error.
  7197.     (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
  7198.     (print_version): Made it say ``see the source'' rather than ``see
  7199.     the source file'', since there is more than one.
  7200.  
  7201.     * file.h: Made `num_intermediates' declared unsigned.
  7202.  
  7203.     * file.c: Made `num_intermediates' variable unsigned.
  7204.     (remove_intermediates): Removed unused FORMAT arg.
  7205.     (enter_file): Made it handle double-colon files properly, adding the
  7206.     new entry as the old entry's prev pointer.
  7207.  
  7208.     * dir.c: Re-indented the `struct dir' definition to be right.
  7209.     (dir_load): Cleaned up slighty.
  7210.     (file_exists_p): Removed comment saying we could use `access', since
  7211.     that is a bad idea (except for setuid programs).  Cleaned up slightly.
  7212.  
  7213.     * commands.c: Changed some comments slightly.
  7214.     (execute_file_commands): Cleaned up a bit.  Changed some comments,
  7215.     added others.  Moved freeing of storage for $^ and $? to the same
  7216.     place as for the other automatic variables.
  7217.     (execute_command_line): Made `#' trigger a shell.
  7218.     Added some comments.  Cleaned up a bit.  Put all the special chars
  7219.     that trigger shells into an array easily changeable at the top.
  7220.  
  7221.     * ar.c: Added comments explaining each function.
  7222.     (ar_scan_1): Merged into ar_member_date.
  7223.     (ar_member_date): Changed call to ar_scan_1 to the body of that
  7224.     function.
  7225.     (ar_member_date_1): Simplified to a ?: expression rather than an
  7226.     if-else statement.
  7227.     (ar_member_touch): Changed error handling around a bit.
  7228.     None of these errors are fatal now.
  7229.  
  7230.     * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
  7231.     only on full words.
  7232.     (patsubst_expand): Fixed bug which made calls whose patterns
  7233.     contained no `%' to not work correctly, by using above.
  7234.     (variable_expand): Pass extra arg to `subst_expand'.
  7235.  
  7236.     * variable.c (expand_function): Fixed bug which made `foreach' calls
  7237.     with one-word lists run off into never-never land.
  7238.  
  7239. Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7240.  
  7241.     * variable.c (expand_function): Made a very minor speed improvement
  7242.     by avoiding an unnecessary strlen call.
  7243.  
  7244. Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7245.  
  7246.     * rule.c (default_suffixes): Rearranged the list somewhat; added
  7247.     `.el' and `.elc' to speed things up (especially when building
  7248.     Emacs), for the same reason `.h' is there.
  7249.  
  7250.     * read.c (record_files): Changed `lineno' from `long' to
  7251.     `unsigned int'.
  7252.  
  7253. Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7254.  
  7255.     * variable.c (expand_function): Eliminated use of `wstok'
  7256.     because it is non-reentrant and unreliable.
  7257.     Fixed a minor bug which would cause something not to be freed.
  7258.     * make.c (wstok): Removed `wstok' because it is no longer used.
  7259.  
  7260.     * variable.c (expand_function): Made `foreach' function put
  7261.     spaces between output texts like it's supposed to.
  7262.     
  7263. Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7264.  
  7265.     * rule.c (default_suffixes, default_suffix_rules): Added rule
  7266.     to make %.dvi from %.texinfo.
  7267.  
  7268.     * dir.c (print_dir_data_base): Made it say a bit more.
  7269.  
  7270. Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7271.  
  7272.     * make.c (print_data_base): Split this function up into one
  7273.     for each thing.
  7274.     * variable.c (print_variable_data_base): One of the above.
  7275.     * rule.c (print_rule_data_base): Ditto.
  7276.     * file.c (print_file_data_base): Ditto.
  7277.     * dir.c (print_dir_data_base): Ditto.
  7278.  
  7279.     * rule.c (install_pattern_rule): Fixed a bug which caused the
  7280.     terminal and recursive flags to always be zero for rules
  7281.     entered by this function.
  7282.  
  7283.     * make.texinfo (Rules: Double-colon): Added a paragraph
  7284.     explaining the purpose of double-colon rules.
  7285.  
  7286.     * make.texinfo (Implicit: Catalogue of Rules): Updated to
  7287.     reflect new C++, TeX, Web, and Texinfo rules.  Other slight
  7288.     editorial changes.
  7289.  
  7290.     * commands.c (execute_file_commands): Fixed a bug wherein
  7291.     random memory could get written for files with no deps.
  7292.     
  7293. Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7294.  
  7295.     * read.c (readline): Fix bug wherein it would not recognize a
  7296.     backslash-newline if the buffer filled up and was enlarged
  7297.     right before reading the newline.
  7298.     
  7299. Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
  7300.  
  7301.     * read.c: Added default suffix rules for .cc (using $(C++),
  7302.     which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
  7303.     and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
  7304.     $(CTANGLE)).
  7305.     
  7306. Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7307.  
  7308.     * Made error formats use %u rather than %ld for line numbers,
  7309.     which are now unsigned int's rather than long's.
  7310.  
  7311.     * read.c (conditional_line): Fixed some bugs caused by use of
  7312.     unsigned int rather than int in one place.
  7313.  
  7314.     * read.c (conditional_line): Put the info about active
  7315.     conditionals in a struct.
  7316.     (read_makefile): Make a new struct of info about conditionals
  7317.     for included makefiles and restore the old one after the
  7318.     included makefile has been read.
  7319.  
  7320.     * read.c (read_makefile): Don't try to read a makefile with
  7321.     name "" after giving an error message because an `include'
  7322.     directive gave no filename.
  7323.  
  7324.     * read.c (read_makefile): Give an error message for
  7325.     non-whitespace text after the filename in an `include' directive.
  7326.  
  7327.     * make.c (error): Take five args, like `fatal'.  It managed to
  7328.     lose with only two.  Is there a better way to do this without vfprintf?
  7329.  
  7330.     * read.c (read_makefile): Commands consisting of only
  7331.     whitespace are not the same as no commands.  I thought I'd
  7332.     fixed this bug months ago; it seems to have come back.
  7333.  
  7334.     * make.c (collapse_continuations): All whitespace around a
  7335.     backslash-newline combination is turned into a single space.
  7336.  
  7337.     * Added COPYING file and copyright notices to all files.
  7338.  
  7339.     * make.texinfo (Running: Goals): Fix a typo.
  7340.  
  7341.     * read.c (do_define): Take an arg for the origin of the
  7342.     variable being defined.
  7343.     (read_makefile): Grok `override define'.
  7344.  
  7345.     * make.texinfo (Variables: Override Directive, Defining):
  7346.     Document the `override define' combination directive.
  7347.  
  7348.     * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
  7349.     (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
  7350.     when put in the `struct file', makes `file_mtime' try to get
  7351.     the mtime over and over again.
  7352.  
  7353.     * variable.c (pattern_matches): Fix a bug that made patterns
  7354.     not beginning with `%' never match.
  7355.     
  7356. Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  7357.  
  7358.     * Took Make out of RCS.
  7359.  
  7360.     * Split the monolithic `make.c' into several smaller files.
  7361.